From 166dc41b8415337b0f4a3fb3cda60ece71d8351d Mon Sep 17 00:00:00 2001 From: Menno Smits Date: Wed, 31 Dec 2014 00:23:43 +1300 Subject: [PATCH] Updated NEWS regarding unicode fixes and __init__ kwarg change --- NEWS.rst | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index c10e102..0bd3911 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -1,3 +1,38 @@ +====== + 0.12 +====== + +Fixed unicode handling [API CHANGE] +----------------------------------- +During the work to support Python 3, IMAPClient was changed to do +return unicode for most responses. This was a bad decision, especially +because it effectively breaks content that uses multiple encodings +(e.g. RFC822 responses). This release includes major changes so that +most responses are returned as bytes (Python 3) or str (Python +2). This means that correct handling of response data is now possible +by code using IMAPClient. + +Folder name handling has also been cleaned up as part of this work. If +the ``folder_encode`` attribute is ``True`` (the default) then folder +names will **always** be returned as unicode. If ``folder_encode`` is +False then folder names will always be returned as bytes/strs. + +Code using IMAPClient will most likely need to be updated to account +these unicode handling changes. + +Many thanks to Inbox (https://www.inboxapp.com/) for sponsoring this +work. + +Extra __init__ keyword args are passed through [NEW] +---------------------------------------------------- +Any unused keyword arguments passed to the IMAPClient initialiser will +now be passed through to the underlying imaplib IMAP4, IMAP4_SSL or +IMAP4_stream class. This is specifically to allow the use of imaplib +features that control certificate validation (if available with the +version of Python being used). + +Thanks to Chris Arndt for this change. + ======== 0.11.1 ======== -- 2.43.0