Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76009
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.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 | OK 0.046 |
| X-Spam-Evidence | '*H*': 0.91; '*S*': 0.00; 'skip:[ 20': 0.04; 'skip:\\ 10': 0.09; '"/"': 0.16; 'code?': 0.16; 'skip:[ 30': 0.16; 'folder': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User- Agent:1': 0.23; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'writes:': 0.31; 'run': 0.32; 'subject:with': 0.35; 'skip:s 30': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'john': 0.61; 'first': 0.61; 'charset:windows-1252': 0.65; 'to:addr:gordon': 0.84 |
| 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:references :in-reply-to:content-type:content-transfer-encoding; bh=yyMCzVre9+OAz+tsp1QUc5wRI/LzAmka3mxflM/bumw=; b=G2kT1mQkSC0UkSENZHTb3dOmCUmd6I2pwkLjj6beZcLDRz+M5MvXfmdwM8tH6Rlsjl J93bLf5vh5UKYS68OJGrTjJuoWxZOrR32YHBprledNQj9XksX24ONsBV7CXigVa+rCbU 9f/wGHaKVlsMQh00nrFMDC6O2oQz5EsunzUs40kzaAMU0bCM7YfiX0V9euH3yBkjP1Yc 58zae7fhWifNQOruYCnUS+mWzlusmwhmBHWpmETQoL+/r75O8ASIg3NeUcrokBuH2mKm uMB1ZSn/t1hgtyfQSwz2jsmJ+RCnM3IIazaHcQObXYPFsfh8CHzvR3q09AqeZSzhL2kC 9RvQ== |
| X-Received | by 10.68.229.166 with SMTP id sr6mr22734811pbc.33.1407713281756; Sun, 10 Aug 2014 16:28:01 -0700 (PDT) |
| Date | Sun, 10 Aug 2014 16:27:54 -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 | John Gordon <gordon@panix.com>, python-list@python.org |
| Subject | Re: why i can't copy mail with imaplib? |
| References | <mailman.12821.1407690877.18130.python-list@python.org> <ls8tvu$h5d$1@reader1.panix.com> |
| In-Reply-To | <ls8tvu$h5d$1@reader1.panix.com> |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| 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.12830.1407713290.18130.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1407713290 news.xs4all.nl 2936 [2001:888:2000:d::a6]:60484 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:76009 |
Show key headers only | View raw
>>> x.con.list()
('OK', [b'(\\HasNoChildren) "/" "INBOX"', b'(\\Noselect \\HasChildren)
"/" "[Gma
il]"', b'(\\HasNoChildren \\Junk) "/" "[Gmail]/&V4NXPpCuTvY-"',
b'(\\HasNoChildr
en \\Trash) "/" "[Gmail]/&XfJSIJZkkK5O9g-"', b'(\\HasNoChildren
\\Flagged) "/" "
[Gmail]/&XfJSoGYfaAc-"', b'(\\HasNoChildren \\Sent) "/"
"[Gmail]/&XfJT0ZCuTvY-"'
, b'(\\HasNoChildren \\All) "/" "[Gmail]/&YkBnCZCuTvY-"',
b'(\\HasNoChildren \\D
rafts) "/" "[Gmail]/&g0l6Pw-"', b'(\\HasNoChildren \\Important) "/"
"[Gmail]/&kc
2JgQ-"'])
>>> x.con.select("inbox")
('OK', [b'40'])
>>> x.con.copy(b"1","[Gmail]/&kc2JgQ-]")
('NO', [b'[TRYCREATE] No folder [Gmail]/\xe9\x87\x8d\xe8\xa6\x81]
(Failure)'])
>>> x.con.copy(b"1","[Gmail]/Important")
('NO', [b'[TRYCREATE] No folder [Gmail]/Important (Failure)'])
On 8/10/2014 4:07 PM, John Gordon wrote:
> In <mailman.12821.1407690877.18130.python-list@python.org> luofeiyu <elearn2014@gmail.com> writes:
>
>> self.con.select("inbox")
>> self.con.copy(b"1","[Gmail]/&kc2JgQ-]")
>> why i can not copy the first email into my important mailbox?
> What happens when you run the above code? Do you get an error?
>
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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