why i can't copy mail with imaplib?

luofeiyu elearn2014 at gmail.com
Sun Aug 10 09:44:12 EDT 2014


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?



More information about the Python-list mailing list