>>> 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-l...@python.org> luofeiyu 
<elearn2...@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?


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to