Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75990

why i can't copy mail with imaplib?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <elearn2014@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.256
X-Spam-Level **
X-Spam-Evidence '*H*': 0.52; '*S*': 0.03; 'module': 0.19; 'header :User-Agent:1': 0.23; "skip:' 10": 0.31; 'subject:with': 0.35; 'skip:s 30': 0.35; 'received:google.com': 0.35; 'method': 0.36; 'subject:?': 0.36; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'skip:. 10': 0.39; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'first': 0.61; 'mailbox.': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=WFe9M68hVMybyG5jpkTBT49qar5XzPgAaNd0g33oTmk=; b=CBZMMYDp+ooNFkQdOo64zoOoqoPUhnDOY4gUTP5mmZK2AxmcOOovekOfgPn/8/Q5D7 lWCHq2BbfGDOgHpkgs72SOQHmnuZlyoe+p1Wl+iyvUV0NQ0Ab2gPeTj85LDvbz8a5v5m PbveSpkdU3EkycbWDHVIwKtgy9XxKgw+Y9Jo9nVmSd/owlv7xjkoFVT45HmGslX0olEB JtnhzAcP1Fx4HkhVNB6BsQz/hKxaVMRPndrymIQ+zwPHUGQ9lwtMqFlTInyy8snoKqzK EkZdOE6Rwda+SppG02IVbPH5LQLNJzFcDQgj4fNno5vKBIQau+7kKm6eI6Ka64jgbd5b fUTg==
X-Received by 10.70.140.13 with SMTP id rc13mr2782899pdb.127.1407678259549; Sun, 10 Aug 2014 06:44:19 -0700 (PDT)
Date Sun, 10 Aug 2014 06:44:12 -0700
From luofeiyu <elearn2014@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version 1.0
To python-list@python.org
Subject why i can't copy mail with imaplib?
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Mailman-Approved-At Sun, 10 Aug 2014 19:14:36 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12821.1407690877.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1407690877 news.xs4all.nl 2914 [2001:888:2000:d::a6]:58633
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75990

Show key headers only | View raw


Help on method copy in module imaplib:

copy(message_set, new_mailbox) method of imaplib.IMAP4_SSL instance
     Copy 'message_set' messages onto end of 'new_mailbox'.

     (typ, [data]) = <instance>.copy(message_set, new_mailbox)


self is an instance in my code."[Gmail]/&kc2JgQ-]" is the important mailbox.


self.con.select("inbox")
self.con.copy(b"1","[Gmail]/&kc2JgQ-]")

why i can not copy the first email into my  important mailbox?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

why i can't copy mail with imaplib? luofeiyu <elearn2014@gmail.com> - 2014-08-10 06:44 -0700
  Re: why i can't copy mail with imaplib? John Gordon <gordon@panix.com> - 2014-08-10 23:07 +0000
    Re: why i can't copy mail with imaplib? luofeiyu <elearn2014@gmail.com> - 2014-08-10 16:27 -0700
    Re: why i can't copy mail with imaplib? Ben Finney <ben+python@benfinney.id.au> - 2014-08-11 09:32 +1000

csiph-web