why i can't copy mail with imaplib?

luofeiyu elearn2014 at gmail.com
Sun Aug 10 19:27:54 EDT 2014


 >>> 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 at python.org> luofeiyu <elearn2014 at 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?
>




More information about the Python-list mailing list