This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pmoleri
Recipients docs@python, pmoleri
Date 2015-04-22.15:19:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429715983.31.0.608966950375.issue24027@psf.upfronthosting.co.za>
In-reply-to
Content
I used the IMAP library and I feel it lacks a lot of documentation regarding types and encoding.

Example:
IMAP4.list([directory[, pattern]]):
It doesn't state if it expects the directory argument to be an string (unicode) or a imap_utf7 encoded string or bytes.
It also expects names with spaces to be between double quotation marks and it doesn't state that it returns a bytes raw output.

This is valid for every function that receives a directory or mailbox argument. Also for most return values.

Documentation aside, I think it would be a nice improvement in the implementation to add an imap_utf7 convertion function, and check every directory or mailbox argument to see if it has characters outside the imap_utf7 charset and attempts to convert them automatically.
History
Date User Action Args
2015-04-22 15:19:43pmolerisetrecipients: + pmoleri, docs@python
2015-04-22 15:19:43pmolerisetmessageid: <1429715983.31.0.608966950375.issue24027@psf.upfronthosting.co.za>
2015-04-22 15:19:43pmolerilinkissue24027 messages
2015-04-22 15:19:42pmolericreate