[issue23323] Issue with imaplib and append messages passing a tuple with flags

2015-01-26 Thread R. David Murray
R. David Murray added the comment: Indeed, as with much of the early email related code in the stdlib, the documentation assumes way too much familiarity with the relevant RFC...which is really hard to read. We should add a few more details to the docs (like FLAGS being a string) even if we d

[issue23323] Issue with imaplib and append messages passing a tuple with flags

2015-01-26 Thread Eric V. Smith
Eric V. Smith added the comment: flags is supposed to be a string. This is not well documented, like much of the module. Try: flags = r'(\Answered \Seen)' -- nosy: +eric.smith ___ Python tracker _

[issue23323] Issue with imaplib and append messages passing a tuple with flags

2015-01-26 Thread Alessio
New submission from Alessio: In example when appending a message with more than one flag in a tuple with imaplib: print flags ('\\Answered', '\\Seen') connection.append('INBOX', flags, date, msg) --- TypeError