| 1 |
:orphan: |
| 2 |
|
| 3 |
.. note:: |
| 4 |
From release 3.0.0 onwards, release notes are maintained |
| 5 |
`on Github <https://github.com/mjs/imapclient/releases>`_. |
| 6 |
|
| 7 |
=============== |
| 8 |
Version 2.3.0 |
| 9 |
=============== |
| 10 |
|
| 11 |
**Note**: This will be the last release to support Python 2. |
| 12 |
|
| 13 |
Many thanks to Boni Lindsley for many of the changes in this release. Changes |
| 14 |
below are by them unless otherwise specified. |
| 15 |
|
| 16 |
Changed |
| 17 |
------- |
| 18 |
- Use GitHub Actions instead of TravisCI |
| 19 |
- Improvements to code examples (thanks shoaib30) |
| 20 |
- Run tests with unittest instead of setup.py |
| 21 |
|
| 22 |
Added |
| 23 |
----- |
| 24 |
- New ``socket()`` method which provides access to the underlying network |
| 25 |
socket. This is useful for allowing the socket to be polled. |
| 26 |
- Allow flags and internaldate to be specified for MULTIAPPEND (thanks Tobias Kölling) |
| 27 |
|
| 28 |
Fixed |
| 29 |
----- |
| 30 |
- Default SSL contexts are now created with correct purpose (thanks pinoatrome) |
| 31 |
- Fixed undiscoverable tests due to name shadowing |
| 32 |
- Fixed missing code block directives in documentation |
| 33 |
- Fixed typo in tox envlist |
| 34 |
- Fixed formatting in release notes |
| 35 |
|
| 36 |
=============== |
| 37 |
Version 2.2.0 |
| 38 |
=============== |
| 39 |
|
| 40 |
Changed |
| 41 |
------- |
| 42 |
- Performance improvements (thanks Carson Ip!) |
| 43 |
|
| 44 |
- 2x faster _maybe_int_to_bytes for Python 2 (#375) |
| 45 |
- Fix _proc_folder_list quadratic runtime (#374) |
| 46 |
- Faster utf7 encode (#373). ~40% faster for input with a mix of unicode and |
| 47 |
ASCII chars. |
| 48 |
- Cache regex in _process_select_response |
| 49 |
|
| 50 |
- poll() when available to surpass 1024 file descriptor limit with select() (#377) (thanks Jonny Hatch) |
| 51 |
- Use next instead of six.next as imapclient doesn't claim Python 2.5 support. (#396) (thanks Jasper Spaans) |
| 52 |
- Moved "Logged in/out" traces from INFO to DEBUG level (thanks Fabio Manganiello) |
| 53 |
- Run tests on Python 3.8 and 3.9 |
| 54 |
- Support the Deleted special folder used by Outlook (thanks Samir M) |
| 55 |
- Clean up timeout handling |
| 56 |
- Run the Black code formatter over the entire project |
| 57 |
|
| 58 |
Added |
| 59 |
----- |
| 60 |
- MULTIAPPEND and LITERAL+ support (#399) (thanks Devin Bayer) |
| 61 |
- Use ptpython for interactive shell if available (#272) |
| 62 |
- Allow any custom SASL mechanism to be provided. This allows mechanisms such |
| 63 |
as EXTERNAL, GSSAPI or SCRAM-SHA-256 to be used in the same way as with |
| 64 |
imaplib. (thanks Mantas Mikulėnas) |
| 65 |
- Add SASL OAUTHBEARER support |
| 66 |
- add optional timeout parameter to IMAP4_TLS.open (thanks zrose584) |
| 67 |
|
| 68 |
Fixed |
| 69 |
----- |
| 70 |
- fixed special folder searching |
| 71 |
- Catch the right exception in folder_status (#371) |
| 72 |
- test_imapclient: Fix LoggerAdapter version check (#383) (thanks Michał Górny) |
| 73 |
- Fix config file parsing for None attributes (#393) (thanks François Deppierraz) |
| 74 |
- Fix useless ref cycle in lexer |
| 75 |
- Protocol parsing: Prevent converting numbers with leading zeroes to int. (#390) (#405) (thanks Jasper Spaans) |
| 76 |
- Prevent UnicodeDecodeError in IMAPlibLoggerAdapter (#367) |
| 77 |
- Fix invalid string escape sequences (#397) |
| 78 |
- Ensure timeout is used on Python 2.7. _create_socket isn't used with the |
| 79 |
Python 2 version of imaplib so the open method has been overrided to make it |
| 80 |
consistent across Python version (#380). |
| 81 |
- Fix IMAP4_TLS for imaplib in Python 3.9+ (thanks Christopher Arndt, marmarek and link2xt) |
| 82 |
|
| 83 |
=============== |
| 84 |
Version 2.1.0 |
| 85 |
=============== |
| 86 |
|
| 87 |
Changed |
| 88 |
------- |
| 89 |
- TravisCI now runs tests against PyPy |
| 90 |
- Python 3.7 is now officially supported |
| 91 |
- Cleaned up server capability checks |
| 92 |
- Use TLS by default for interactive sessions |
| 93 |
|
| 94 |
Added |
| 95 |
----- |
| 96 |
- Support the ``QUOTA`` extension |
| 97 |
- Support for locating special folders (``find_special_folder()``) |
| 98 |
- Document usage of client TLS certificates |
| 99 |
- Added documentation & example for parsing retrieved emails using the |
| 100 |
standard library ``email`` package. |
| 101 |
|
| 102 |
Fixed |
| 103 |
----- |
| 104 |
- Handle ``NIL`` values for ``INTERNALDATE`` |
| 105 |
|
| 106 |
============= |
| 107 |
Version 2.0 |
| 108 |
============= |
| 109 |
|
| 110 |
Changed |
| 111 |
------- |
| 112 |
- Only use Python's built-in TLS support (no more backports.ssl & pyOpenSSL) |
| 113 |
- Connections use SSL/TLS by default (`ssl=True`) |
| 114 |
- Drop ``imapclient.tls.create_default_context`` function. In case you were |
| 115 |
using it, you can use the method with the same name available in the |
| 116 |
built-in ``ssl`` module. |
| 117 |
- Logs are now handled by the Python logging module. The `debug` and `log_file` |
| 118 |
attributes are gone. |
| 119 |
- More precise exceptions available in `imapclient.exceptions` are raised when |
| 120 |
an error happens |
| 121 |
- `imapclient.exceptions.ProtocolError` is now raised when the reply from a |
| 122 |
remote server violates the IMAP protocol. |
| 123 |
- SEARCH exceptions now link to relevant documentation. |
| 124 |
- GMail labels are now strings instead of bytes in Python 3. |
| 125 |
- OAUTH v1 support removed. |
| 126 |
- setup.py has been simplified. |
| 127 |
- All non-library code moved out of the `imapclient` package. |
| 128 |
- Many documentation improvements. |
| 129 |
|
| 130 |
Added |
| 131 |
----- |
| 132 |
- Connection and read/write operations timeout can now be distinct, using |
| 133 |
`imapclient.SocketTimeout` namedtuple as `timeout` parameter. |
| 134 |
- A context manager is introduced to automatically close connections to remote |
| 135 |
servers. |
| 136 |
- EXPUNGE by ID support. |
| 137 |
- ENABLE support. |
| 138 |
- UNSELECT support. |
| 139 |
- Atomically move messages to another folder using the MOVE extension |
| 140 |
(:rfc:`6851`) |
| 141 |
- New `welcome` property to allow access to IMAP server greeting. |
| 142 |
|
| 143 |
Fixed |
| 144 |
----- |
| 145 |
- GMail labels using international characters are now handled properly. |
| 146 |
- Don't use locale dependent formatting in `datetime_to_INTERNAL_DATE()`. |
| 147 |
- Quote empty strings to prevent syntax errors while SEARCHing for zero-length |
| 148 |
strings. |
| 149 |
- Handle address without mailbox name or host in Address namedtuple. |
| 150 |
- Avoid asserts in response parsing codes to allow graceful recovery. |
| 151 |
- Prevent logging of IMAP passwords. |
| 152 |
|
| 153 |
Python compatibility |
| 154 |
-------------------- |
| 155 |
Support for Python 2.6 and 3.3 is removed in this release. |
| 156 |
|
| 157 |
This version supports Python 2.7, 3.4, 3.5 and 3.6. We officially support the |
| 158 |
latest release of each series. |
| 159 |
|
| 160 |
|
| 161 |
=============== |
| 162 |
Version 1.1.0 |
| 163 |
=============== |
| 164 |
|
| 165 |
Added |
| 166 |
----- |
| 167 |
- Search now supports nested criteria so that more complex criteria |
| 168 |
can be expressed. IMAPClient will add parentheses in the right place. |
| 169 |
- PLAIN authentication support (via `plain_login` method) |
| 170 |
- `unselect_folder()` method, for servers with the UNSELECT capability (#200) |
| 171 |
- Add ENABLE support (#136) |
| 172 |
- UID EXPUNGE support (#287) |
| 173 |
|
| 174 |
Changed |
| 175 |
------- |
| 176 |
- the `mock` package is no longer installed by default (just as a test |
| 177 |
dependency) |
| 178 |
- handle NIL date values in INTERNALDATE |
| 179 |
- add `silent` option to all flags methods (improves performance by |
| 180 |
avoiding unnecessary parsing) |
| 181 |
- simplify Gmail label functionality |
| 182 |
- folder_status is more robust |
| 183 |
- various livetest reliability improvements |
| 184 |
|
| 185 |
Fixed |
| 186 |
----- |
| 187 |
- don't quote search criteria when sent as IMAP literals. Fixes #249. |
| 188 |
- Modified UTF-7 encoding function had quirks in its original algorithm, |
| 189 |
leading to incorrect encoded output in some cases. The algorithm, described |
| 190 |
in RFC 3501, has been reimplemented to fix #187 and is better documented. |
| 191 |
- use fixed month names when formatting INTERNALDATES (don't rely on locale) |
| 192 |
- handle address without mailbox name or host in Address namedtuple. Fixes #242. |
| 193 |
- Use cryptography < 2.0 on Python 3.3. Fixes #305. |
| 194 |
|
| 195 |
|
| 196 |
=============== |
| 197 |
Version 1.0.2 |
| 198 |
=============== |
| 199 |
|
| 200 |
New |
| 201 |
--- |
| 202 |
- Documented the livetest/interact INI file format. |
| 203 |
- Documented handling of RFC2822 group syntax. |
| 204 |
|
| 205 |
Changed |
| 206 |
------- |
| 207 |
- Explicitly check that the required pyOpenSSL version is installed |
| 208 |
- Start testing against Python 3.5 |
| 209 |
- Update doc links from readthedocs.org to readthedocs.io |
| 210 |
- Rearranged README so that project essentials are right at the top. |
| 211 |
|
| 212 |
Fixed |
| 213 |
----- |
| 214 |
- Allow installation from alternate directories |
| 215 |
|
| 216 |
=============== |
| 217 |
Version 1.0.1 |
| 218 |
=============== |
| 219 |
|
| 220 |
Changed |
| 221 |
------- |
| 222 |
- Minimum backports.ssl dependency is now 0.0.9 (an important |
| 223 |
performance issue was addressed) |
| 224 |
- setuptools 18.8.1 now used due to strange zip file error for 17.1 |
| 225 |
|
| 226 |
Fixed |
| 227 |
----- |
| 228 |
- Unit test for version strings were updated to now always include the |
| 229 |
patch version. |
| 230 |
- Fresh capabilities now retrieved between STARTTLS and authentication |
| 231 |
(#195). |
| 232 |
|
| 233 |
=============== |
| 234 |
Version 1.0.0 |
| 235 |
=============== |
| 236 |
|
| 237 |
Enhanced TLS support [API] |
| 238 |
-------------------------- |
| 239 |
The way that IMAPClient establishes TLS/SSL connections has been |
| 240 |
completely reworked. By default IMAPClient will attempt certificate |
| 241 |
verification, certificate hostname checking, and will not use |
| 242 |
known-insecure TLS settings and protocols. In addition, TLS parameters |
| 243 |
are now highly configurable. |
| 244 |
|
| 245 |
By leveraging pyOpenSSL and backports.ssl, all Python versions |
| 246 |
supported by IMAPClient enjoy the same TLS functionality and |
| 247 |
API. |
| 248 |
|
| 249 |
These packages mean that IMAPClient now has a number of new |
| 250 |
dependencies. These should be installed automatically as required but |
| 251 |
there will no doubt be complications. |
| 252 |
|
| 253 |
Compatibility breaks: |
| 254 |
|
| 255 |
1. Due to lack of support in some of the dependent libraries, |
| 256 |
IMAPClient no longer supports Python 3.2. |
| 257 |
2. The passthrough keyword arguments that the IMAPClient constructor |
| 258 |
took in past versions are no longer accepted. These were in place |
| 259 |
to provide access to imaplib's SSL arguments which are no longer |
| 260 |
relevant. Please pass a SSL context object instead. |
| 261 |
3. When using the default SSL context that IMAPClient creates |
| 262 |
(recommended), certificate verification is enabled. This means that |
| 263 |
IMAPClient connections to servers that used to work before, |
| 264 |
may fail now (especially if a self-signed certificate is used by |
| 265 |
the server). Refer to the documentation for details of how to |
| 266 |
supply alternate CA certificates or disable verification. |
| 267 |
4. There are some new exceptions that might be raised in response to |
| 268 |
network issues or TLS protocol failures. Refer to the |
| 269 |
Exceptions_ section of the manual for more details. |
| 270 |
|
| 271 |
Please refer to the "TLS/SSL" section of the manual for more details |
| 272 |
on all of the above. |
| 273 |
|
| 274 |
Many thanks to Chris Arndt and Marc-Antoine Parent for their input |
| 275 |
into these TLS improvements. |
| 276 |
|
| 277 |
.. _Exceptions: http://imapclient.readthedocs.io/en/latest/#exceptions |
| 278 |
|
| 279 |
STARTTLS support [NEW] |
| 280 |
---------------------- |
| 281 |
When the server supports it, IMAPClient can now establish an encrypted |
| 282 |
connection after initially starting with an unencrypted connection |
| 283 |
using the STARTTLS command. The starttls method takes an SSL context |
| 284 |
object for controlling the parameters of the TLS negotiation. |
| 285 |
|
| 286 |
Many thanks to Chris Arndt for his extensive initial work on this. |
| 287 |
|
| 288 |
More robust criteria handling for search, sort and thread [API] |
| 289 |
--------------------------------------------------------------- |
| 290 |
IMAPClient's methods that accept search criteria (search, sort, |
| 291 |
thread, gmail_search) have been changed to provide take criteria in |
| 292 |
a more straightforward and robust way. In addition, the way the |
| 293 |
*charset* argument interacts with search criteria has been |
| 294 |
improved. These changes make it easier to pass search criteria and |
| 295 |
have them handled correctly but unfortunately also mean that small |
| 296 |
changes may be required to existing code that uses IMAPClient. |
| 297 |
|
| 298 |
Search criteria |
| 299 |
~~~~~~~~~~~~~~~ |
| 300 |
The preferred way to specify criteria now is as a list of strings, |
| 301 |
ints and dates (where relevant). The list should be flat with all the |
| 302 |
criteria parts run together. Where a criteria takes an argument, just |
| 303 |
provide it as the next element in the list. |
| 304 |
|
| 305 |
Some valid examples:: |
| 306 |
|
| 307 |
c.search(['DELETED']) |
| 308 |
c.search(['NOT', 'DELETED']) |
| 309 |
c.search(['FLAGGED', 'SUBJECT', 'foo', 'BODY', 'hello world']) |
| 310 |
c.search(['NOT', 'DELETED', 'SMALLER', 1000]) |
| 311 |
c.search(['SINCE', date(2006, 5, 3)]) |
| 312 |
|
| 313 |
IMAPClient will perform all required conversion, quoting and |
| 314 |
encoding. Callers do not need to and should not attempt to do this |
| 315 |
themselves. IMAPClient will automatically send criteria parts as IMAP |
| 316 |
literals when required (i.e. when the encoded part is 8-bit). |
| 317 |
|
| 318 |
Some previously accepted ways of passing search criteria will not work |
| 319 |
as they did in previous versions of IMAPClient. Small changes will be |
| 320 |
required in these cases. Here are some examples of how to update code |
| 321 |
written against older versions of IMAPClient:: |
| 322 |
|
| 323 |
c.search(['NOT DELETED']) # Before |
| 324 |
c.search(['NOT', 'DELETED']) # After |
| 325 |
|
| 326 |
c.search(['TEXT "foo"']) # Before |
| 327 |
c.search(['TEXT', 'foo']) # After (IMAPClient will add the quotes) |
| 328 |
|
| 329 |
c.search(['DELETED', 'TEXT "foo"']) # Before |
| 330 |
c.search(['DELETED', 'TEXT', 'foo']) # After |
| 331 |
|
| 332 |
c.search(['SMALLER 1000']) # Before |
| 333 |
c.search(['SMALLER', 1000]) # After |
| 334 |
|
| 335 |
It is also possible to pass a single string as the search |
| 336 |
criteria. IMAPClient will not attempt quoting in this case, allowing |
| 337 |
the caller to specify search criteria at a lower level. Specifying |
| 338 |
criteria using a sequence of strings is preferable however. The |
| 339 |
following examples (equivalent to those further above) are valid:: |
| 340 |
|
| 341 |
c.search('DELETED') |
| 342 |
c.search('NOT DELETED') |
| 343 |
c.search('FLAGGED SUBJECT "foo" BODY "hello world"') |
| 344 |
c.search('NOT DELETED SMALLER 1000') |
| 345 |
c.search('SINCE 03-May-2006') |
| 346 |
|
| 347 |
Search charset |
| 348 |
~~~~~~~~~~~~~~ |
| 349 |
The way that the search *charset* argument is handled has also |
| 350 |
changed. |
| 351 |
|
| 352 |
Any unicode criteria arguments will now be encoded by IMAPClient using |
| 353 |
the supplied charset. The charset must refer to an encoding that is |
| 354 |
capable of handling the criteria's characters or an error will |
| 355 |
occur. The charset must obviously also be one that the server |
| 356 |
supports! (UTF-8 is common) |
| 357 |
|
| 358 |
Any criteria given as bytes will not be changed by IMAPClient, but the |
| 359 |
provided charset will still be passed to the IMAP server. This allows |
| 360 |
already encoding criteria to be passed through as-is. The encoding |
| 361 |
referred to by *charset* should match the actual encoding used for the |
| 362 |
criteria. |
| 363 |
|
| 364 |
The following are valid examples:: |
| 365 |
|
| 366 |
c.search(['TEXT', u'\u263a'], 'utf-8') # IMAPClient will apply UTF-8 encoding |
| 367 |
c.search([b'TEXT', b'\xe2\x98\xba'], 'utf-8') # Caller has already applied UTF-8 encoding |
| 368 |
|
| 369 |
The documentation and tests for search, gmail_search, sort and thread |
| 370 |
has updated to account for these changes and have also been generally |
| 371 |
improved. |
| 372 |
|
| 373 |
Socket timeout support [NEW] |
| 374 |
---------------------------- |
| 375 |
IMAPClient now accepts a timeout at creation time. The timeout applies |
| 376 |
while establishing the connection and for all operations on the socket |
| 377 |
connected to the IMAP server. |
| 378 |
|
| 379 |
Semantic versioning |
| 380 |
------------------- |
| 381 |
In order to better indicate version compatibility to users, IMAPClient |
| 382 |
will now strictly adhere to the `Semantic Versioning |
| 383 |
<http://semver.org>`_ scheme. |
| 384 |
|
| 385 |
Performance optimisation for parsing message id lists |
| 386 |
----------------------------------------------------- |
| 387 |
A short circuit is now used when parsing a list of message ids which |
| 388 |
greatly speeds up parsing time. |
| 389 |
|
| 390 |
Other |
| 391 |
----- |
| 392 |
- Perform quoting of Gmail labels. Thanks to Pawel Sz for the fix. |
| 393 |
- The type of the various flag constants was fixed. Thanks to Thomi |
| 394 |
Richards for pointing this out. |
| 395 |
- Now using mock 1.3.0. Thanks to Thomi Richards for the patch. |
| 396 |
- Fixed handling of very long numeric only folder names. Thanks to |
| 397 |
Paweł Gorzelany for the patch. |
| 398 |
- The default charset for gmail_search is now UTF-8. This makes it |
| 399 |
easier to use any unicode string as a search string and is safe |
| 400 |
because Gmail supports UTF-8 search criteria. |
| 401 |
- PEP8 compliance fixed (except for some occasional long lines) |
| 402 |
- Added a "shutdown" method. |
| 403 |
- The embedded six package has been removed in favour of using an |
| 404 |
externally installed instance. |
| 405 |
- Fixed handling of literals in STATUS responses. |
| 406 |
- Only use the untagged post-login CAPABILITY response once (if sent |
| 407 |
by server). |
| 408 |
- Release history made part of the main documentation. |
| 409 |
- Clarified how message ids work in the docs. |
| 410 |
- Livetest infrastructure now works with Yahoo's OAUTH2 |
| 411 |
- Fixed bytes handling in Address.__str__ |
| 412 |
|
| 413 |
============== |
| 414 |
Version 0.13 |
| 415 |
============== |
| 416 |
|
| 417 |
Added support for the ID command [NEW] |
| 418 |
-------------------------------------- |
| 419 |
As per RFC2971. Thanks to Eben Freeman from Nylas. |
| 420 |
|
| 421 |
Fix exception with NIL address in envelope address list |
| 422 |
------------------------------------------------------- |
| 423 |
Thanks to Thomas Steinacher for this fix. |
| 424 |
|
| 425 |
Fixed handling of NIL in SEARCH response |
| 426 |
---------------------------------------- |
| 427 |
Fixed a regression in the handling of NIL/None SEARCH |
| 428 |
responses. Thanks again to Thomas Steinacher. |
| 429 |
|
| 430 |
Date parsing fixes |
| 431 |
------------------ |
| 432 |
Don't traceback when an unparsable date is seen in ENVELOPE |
| 433 |
responses. None is returned instead. |
| 434 |
|
| 435 |
Support quirky timestamp strings which use dots for the time |
| 436 |
separator. |
| 437 |
|
| 438 |
Removed horrible INTERNALDATE parsing code (use parse_to_datetime |
| 439 |
instead). |
| 440 |
|
| 441 |
datetime_to_imap has been moved to the datetime_util module and is now |
| 442 |
called datetime_to_INTERNALDATE. This will only affect you in the |
| 443 |
unlikely case that you were importing this function out of the |
| 444 |
IMAPClient package. |
| 445 |
|
| 446 |
Other |
| 447 |
----- |
| 448 |
- The docs for various IMAPClient methods, and the HACKING.rst file |
| 449 |
have been updated. |
| 450 |
- CONDSTORE live test is now more reliable (especially when running |
| 451 |
against Gmail) |
| 452 |
|
| 453 |
============== |
| 454 |
Version 0.12 |
| 455 |
============== |
| 456 |
|
| 457 |
Fixed unicode handling [API CHANGE] |
| 458 |
----------------------------------- |
| 459 |
During the work to support Python 3, IMAPClient was changed to do |
| 460 |
return unicode for most responses. This was a bad decision, especially |
| 461 |
because it effectively breaks content that uses multiple encodings |
| 462 |
(e.g. RFC822 responses). This release includes major changes so that |
| 463 |
most responses are returned as bytes (Python 3) or str (Python |
| 464 |
2). This means that correct handling of response data is now possible |
| 465 |
by code using IMAPClient. |
| 466 |
|
| 467 |
Folder name handling has also been cleaned up as part of this work. If |
| 468 |
the ``folder_encode`` attribute is ``True`` (the default) then folder |
| 469 |
names will **always** be returned as unicode. If ``folder_encode`` is |
| 470 |
False then folder names will always be returned as bytes/strs. |
| 471 |
|
| 472 |
Code using IMAPClient will most likely need to be updated to account |
| 473 |
these unicode handling changes. |
| 474 |
|
| 475 |
Many thanks to Inbox (now Nilas, https://nilas.com/) for sponsoring this |
| 476 |
work. |
| 477 |
|
| 478 |
Extra __init__ keyword args are passed through [NEW] |
| 479 |
---------------------------------------------------- |
| 480 |
Any unused keyword arguments passed to the IMAPClient initialiser will |
| 481 |
now be passed through to the underlying imaplib IMAP4, IMAP4_SSL or |
| 482 |
IMAP4_stream class. This is specifically to allow the use of imaplib |
| 483 |
features that control certificate validation (if available with the |
| 484 |
version of Python being used). |
| 485 |
|
| 486 |
Thanks to Chris Arndt for this change. |
| 487 |
|
| 488 |
MODSEQ parts in SEARCH responses are now handled |
| 489 |
------------------------------------------------ |
| 490 |
If the CONDSTORE extension is supported by a server and a MODSEQ |
| 491 |
criteria was used with search(), a TypeError could occur. This has now |
| 492 |
been fixed and the MODSEQ value returned by the server is now |
| 493 |
available via an attribute on the returned list of ids. |
| 494 |
|
| 495 |
Minor Changes |
| 496 |
------------- |
| 497 |
* Small tweaks to support Python 3.4. |
| 498 |
* The deprecated get_folder_delimiter() method has been removed. |
| 499 |
* More control over OAUTH2 parameters. Thanks to Phil Peterson for |
| 500 |
this. |
| 501 |
* Fixed livetest/interact OAUTH handling under Python 3. |
| 502 |
|
| 503 |
================ |
| 504 |
Version 0.11.1 |
| 505 |
================ |
| 506 |
|
| 507 |
* Close folders during livetest cleanup so that livetests work with |
| 508 |
newer Dovecot servers (#131) |
| 509 |
|
| 510 |
============== |
| 511 |
Version 0.11 |
| 512 |
============== |
| 513 |
|
| 514 |
Support for raw Gmail searching [NEW] |
| 515 |
------------------------------------- |
| 516 |
The new gmail_search methods allows direct Gmail queries using the |
| 517 |
X-GM-RAW search extension. Thanks to John Louis del Rosario for the |
| 518 |
patch. |
| 519 |
|
| 520 |
ENVELOPE FETCH response parsing [NEW, API CHANGE] |
| 521 |
------------------------------------------------- |
| 522 |
ENVELOPE FETCH responses are now returned as Envelope instances. These |
| 523 |
objects are namedtuples providing convenient attribute and positional |
| 524 |
based access to envelope fields. The Date field is also now converted |
| 525 |
to a datetime instance. |
| 526 |
|
| 527 |
As part of this change various date and time related utilities were |
| 528 |
moved to a new module at imapclient.datetime_util. |
| 529 |
|
| 530 |
Thanks to Naveen Nathan for the work on this feature. |
| 531 |
|
| 532 |
Correct nested BODYSTRUCTURE handling [API CHANGE] |
| 533 |
-------------------------------------------------- |
| 534 |
BODY and BODYSTRUCTURE responses are now processed recusively so |
| 535 |
multipart sections within other multipart sections are returned |
| 536 |
correctly. This also means that each the part of the response now has |
| 537 |
a is_multipart property available. |
| 538 |
|
| 539 |
NOTE: code that expects the old (broken) behaviour will need to be |
| 540 |
updated. |
| 541 |
|
| 542 |
Thanks to Brandon Rhodes for the bug report. |
| 543 |
|
| 544 |
SELECT response bug fix |
| 545 |
----------------------- |
| 546 |
Handle square brackets in flags returned in SELECT response. |
| 547 |
Previously these would cause parsing errors. Thanks to Benjamin |
| 548 |
Morrise for the bug report. |
| 549 |
|
| 550 |
Minor Changes |
| 551 |
------------- |
| 552 |
Copyright date update for 2014. |
| 553 |
|
| 554 |
|
| 555 |
================ |
| 556 |
Version 0.10.2 |
| 557 |
================ |
| 558 |
|
| 559 |
Switch back to setuptools now that distribute and setuptools have |
| 560 |
merged back. Some users were reporting problems with distribute and |
| 561 |
the newer versions of setuptools. |
| 562 |
|
| 563 |
================ |
| 564 |
Version 0.10.1 |
| 565 |
================ |
| 566 |
|
| 567 |
Fixed regressions in several cases when binary data (i.e. normal |
| 568 |
strings under Python 2) are used as arguments to some methods. Also |
| 569 |
refactored input normalisation functions somewhat. |
| 570 |
|
| 571 |
Fixed buggy method for extracting flags and Gmail labels from STORE |
| 572 |
responses. |
| 573 |
|
| 574 |
============== |
| 575 |
Version 0.10 |
| 576 |
============== |
| 577 |
|
| 578 |
Python 3 support (#22) [API CHANGE] |
| 579 |
----------------------------------- |
| 580 |
Python 3.2 and 3.3 are now officially supported. This release also |
| 581 |
means that Python versions older than 2.6 are no longer supported. |
| 582 |
|
| 583 |
A single source approach has been used, with no conversion step required. |
| 584 |
|
| 585 |
A big thank you to Mathieu Agopian for his massive contribution to |
| 586 |
getting the Python 3 port finished. His changes and ideas feature |
| 587 |
heavily in this release. |
| 588 |
|
| 589 |
**IMPORTANT**: Under Python 2, all strings returned by IMAPClient are now |
| 590 |
returned as unicode objects. With the exception of folder names, these |
| 591 |
unicode objects will only contain characters in the ASCII range so |
| 592 |
this shouldn't break existing code, however there is always a chance |
| 593 |
that there will be a problem. Please test your existing applications |
| 594 |
thoroughly with this verison of IMAPClient before deploying to |
| 595 |
production situations. |
| 596 |
|
| 597 |
Minor Changes |
| 598 |
------------- |
| 599 |
* "python setup.py test" now runs the unit tests |
| 600 |
* Mock library is now longer included (listed as external test dependency) |
| 601 |
* live tests that aren't UID related are now only run once |
| 602 |
* live tests now perform far less logins to the server under test |
| 603 |
* Unit tests can now be run for all supported Python versions using ``tox``. |
| 604 |
* Improved documentation regarding working on the project. |
| 605 |
* Many documentation fixes and improvements. |
| 606 |
|
| 607 |
Minor Bug Fixes |
| 608 |
--------------- |
| 609 |
* HIGHESTMODSEQ in SELECT response is now parsed correctly |
| 610 |
* Fixed daylight saving handling in FixedOffset class |
| 611 |
* Fixed --port command line bug in imapclient.interact when SSL |
| 612 |
connections are made. |
| 613 |
|
| 614 |
=============== |
| 615 |
Version 0.9.2 |
| 616 |
=============== |
| 617 |
|
| 618 |
THREAD support [NEW] |
| 619 |
-------------------- |
| 620 |
The IMAP THREAD command is now supported. Thanks to Lukasz Mierzwa for |
| 621 |
the patches. |
| 622 |
|
| 623 |
Enhanced capability querying [NEW] |
| 624 |
---------------------------------- |
| 625 |
Previously only the pre-authentication server capabilities were |
| 626 |
returned by the capabilities() method. Now, if the connection is |
| 627 |
authenticated, the post-authentication capabilities will be returned. |
| 628 |
If the server sent an untagged CAPABILITY response after authentication, |
| 629 |
that will be used, avoiding an unnecessary CAPABILITY command call. |
| 630 |
|
| 631 |
All this ensures that the client sees all available server |
| 632 |
capabilities. |
| 633 |
|
| 634 |
Minor Features |
| 635 |
-------------- |
| 636 |
* Better documentation for contributers (see HACKING file) |
| 637 |
* Copyright date update for 2013. |
| 638 |
|
| 639 |
=============== |
| 640 |
Version 0.9.1 |
| 641 |
=============== |
| 642 |
|
| 643 |
Stream support [NEW] |
| 644 |
-------------------- |
| 645 |
It is now possible to have IMAPClient run an external command to |
| 646 |
establish a connection to the IMAP server via a new *stream* keyword |
| 647 |
argument to the initialiser. This is useful for exotic connection or |
| 648 |
authentication setups. The *host* argument is used as the command to |
| 649 |
run. |
| 650 |
|
| 651 |
Thanks to Dave Eckhardt for the original patch. |
| 652 |
|
| 653 |
OAUTH2 Support [NEW] |
| 654 |
-------------------- |
| 655 |
OAUTH2 authentication (as supported by Gmail's IMAP) is now available |
| 656 |
via the new oauth2_login method. Thanks to Zac Witte for the original |
| 657 |
patch. |
| 658 |
|
| 659 |
livetest now handles Gmail's new message handling |
| 660 |
------------------------------------------------- |
| 661 |
Gmail's IMAP implementation recently started requiring a NOOP command |
| 662 |
before new messages become visible after delivery or an APPEND. The |
| 663 |
livetest suite has been updated to deal with this. |
| 664 |
|
| 665 |
============= |
| 666 |
Version 0.9 |
| 667 |
============= |
| 668 |
|
| 669 |
Gmail Label Support |
| 670 |
------------------- |
| 671 |
New methods have been added for interacting with Gmail's label API: |
| 672 |
get_gmail_labels, add_gmail_labels, set_gmail_labels, |
| 673 |
remove_gmail_labels. Thanks to Brian Neal for the patches. |
| 674 |
|
| 675 |
Removed Code Duplication (#9) |
| 676 |
----------------------------- |
| 677 |
A signficant amount of duplicated code has been removed by abstracting |
| 678 |
out common command handling code. This will make the Python 3 port and |
| 679 |
future maintenance easier. |
| 680 |
|
| 681 |
livetest can now be run against non-dummy accounts (#108) |
| 682 |
--------------------------------------------------------- |
| 683 |
Up until this release the tests in imapclient.livetest could only be |
| 684 |
run against a dummy IMAP account (all data in the account would be |
| 685 |
lost during testing). The tests are now limited to a sub-folder |
| 686 |
created by the tests so it is ok to run them against an account that |
| 687 |
contains real messages. These messages will be left alone. |
| 688 |
|
| 689 |
Minor Features |
| 690 |
-------------- |
| 691 |
* Don't traceback when an IMAP server returns a all-digit folder name |
| 692 |
without quotes. Thanks to Rhett Garber for the bug report. (#107) |
| 693 |
* More tests for ACL related methods (#89) |
| 694 |
* More tests for namespace() |
| 695 |
* Added test for read-only select_folder() |
| 696 |
|
| 697 |
Minor Bug Fixes |
| 698 |
--------------- |
| 699 |
* Fixed rename live test so that it uses folder namespaces (#100). |
| 700 |
* Parse STATUS responses robustly - fixes folder_status() with MS |
| 701 |
Exchange. |
| 702 |
* Numerous livetest fixes to work around oddities with the MS |
| 703 |
Exchange IMAP implementation. |
| 704 |
|
| 705 |
=============== |
| 706 |
Version 0.8.1 |
| 707 |
=============== |
| 708 |
|
| 709 |
* IMAPClient wasn't installing on Windows due to an extra trailing |
| 710 |
slash in MANIFEST.in (#102). This is a bug in distutils. |
| 711 |
* MANIFEST.in was fixed so that the main documentation index file |
| 712 |
is included the source distribution. |
| 713 |
* distribute_setup.py was updated to the 0.6.24 version. |
| 714 |
* This release also contains some small documentation fixes. |
| 715 |
|
| 716 |
============= |
| 717 |
Version 0.8 |
| 718 |
============= |
| 719 |
|
| 720 |
OAUTH Support (#54) [NEW] |
| 721 |
------------------------- |
| 722 |
OAUTH authentication is now supported using the oauth_login |
| 723 |
method. This requires the 3rd party oauth2 package is |
| 724 |
installed. Thanks to Johannes Heckel for contributing the patch to |
| 725 |
this. |
| 726 |
|
| 727 |
IDLE Support (#50) [NEW] |
| 728 |
------------------------ |
| 729 |
The IDLE extension is now supported through the new idle(), |
| 730 |
idle_check() and idle_done() methods. See the example in |
| 731 |
imapclient/examples/idle_example.py. |
| 732 |
|
| 733 |
NOOP Support (#74) [NEW] |
| 734 |
------------------------ |
| 735 |
The NOOP command is now supported. It returns parsed untagged server |
| 736 |
responses in the same format as idle_check() and idle_done(). |
| 737 |
|
| 738 |
Sphinx Based Docs (#5) [NEW] |
| 739 |
---------------------------- |
| 740 |
Full documentation is now available under doc/html in the source |
| 741 |
distribution and at http://imapclient.readthedocs.io/ online. |
| 742 |
|
| 743 |
Added rename_folder (#77) [NEW] |
| 744 |
-------------------------------- |
| 745 |
Renaming of folders was an obvious omission! |
| 746 |
|
| 747 |
Minor Features |
| 748 |
-------------- |
| 749 |
* interact.py can now read livetest.py INI files (#66) |
| 750 |
* interact.py can now embed shells from ipython 0.10 and 0.11 (#98) |
| 751 |
* interact.py and livetest.py are now inside the imapclient package so |
| 752 |
they can be used even when IMAClient has been installed from PyPI |
| 753 |
(#82) |
| 754 |
* Added "debug" propety and setting of a log file (#90) |
| 755 |
* "normalise_times" attribute allows caller to select whether |
| 756 |
datetimes returned by fetch() are native or not (#96) (Thanks Andrew |
| 757 |
Scheller) |
| 758 |
* Added imapclient.version_info - a tuple that contains the IMAPClient |
| 759 |
version number broken down into it's parts. |
| 760 |
|
| 761 |
Minor Bug Fixes |
| 762 |
--------------- |
| 763 |
* getacl() was using wrong lexing class (#85) (Thanks josephhh) |
| 764 |
* Removed special handling for response tuples without whitespace |
| 765 |
between them. Post-process BODY/BODYSTRUCTURE responses |
| 766 |
instead. This should not affect the external API. (#91) (Thanks |
| 767 |
daishi) |
| 768 |
* Fix incorrect msg_id for UID fetch when use_uid is False (#99) |
| 769 |
|
| 770 |
============= |
| 771 |
Version 0.7 |
| 772 |
============= |
| 773 |
|
| 774 |
BODY and BODYSTRUCTURE parsing fixes (#58) [API CHANGE] |
| 775 |
------------------------------------------------------- |
| 776 |
The response values for BODY and BODYSTRUCTURE responses may include a |
| 777 |
sequence of tuples which are not separated by whitespace. These should |
| 778 |
be treated as a single item (a list of multiple arbitrarily nested |
| 779 |
tuples) but IMAPClient was treating them as separate items. IMAPClient |
| 780 |
now returns these tuples in a list to allow for consistent parsing. |
| 781 |
|
| 782 |
A BODYSTRUCTURE response for a multipart email with 2 parts would have |
| 783 |
previously looked something like this:: |
| 784 |
|
| 785 |
(('text', 'html', ('charset', 'us-ascii'), None, None, 'quoted-printable', 55, 3), |
| 786 |
('text', 'plain', ('charset', 'us-ascii'), None, None, '7bit', 26, 1), |
| 787 |
'mixed', ('boundary', '===============1534046211==')) |
| 788 |
|
| 789 |
The response is now returned like this:: |
| 790 |
|
| 791 |
([ |
| 792 |
('text', 'html', ('charset', 'us-ascii'), None, None, 'quoted-printable', 55, 3), |
| 793 |
('text', 'plain', ('charset', 'us-ascii'), None, None, '7bit', 26, 1) |
| 794 |
], |
| 795 |
'mixed', ('boundary', '===============1534046211==')) |
| 796 |
|
| 797 |
The behaviour for single part messages is unchanged. In this case the |
| 798 |
first element of the tuple is a string specifying the major content |
| 799 |
type of the message (eg "text"). |
| 800 |
|
| 801 |
An is_multipart boolean property now exists on BODY and BODYSTRUCTURE |
| 802 |
responses to allow the caller to easily determine whether the response |
| 803 |
is for a multipart message. |
| 804 |
|
| 805 |
Code that expects the previous response handling behaviour needs to be |
| 806 |
updated. |
| 807 |
|
| 808 |
Live tests converted to use unittest2 (#4) |
| 809 |
------------------------------------------ |
| 810 |
livetest.py now uses the unittest2 package to run the tests. This |
| 811 |
provides much more flexibility that the custom approach that was used |
| 812 |
before. Dependencies between tests are gone - each test uses a fresh |
| 813 |
IMAP connection and is preceeded by the same setup. |
| 814 |
|
| 815 |
unittest2.main() is used to provide a number of useful command line |
| 816 |
options and the ability to run a subset of tests. |
| 817 |
|
| 818 |
IMAP account parameters are now read using a configuration file |
| 819 |
instead of command line arguments. See livetest-sample.ini for an |
| 820 |
example. |
| 821 |
|
| 822 |
Added NAMESPACE support (#63) [API CHANGE] |
| 823 |
------------------------------------------ |
| 824 |
namespace() method added and get_folder_delimiter() has been |
| 825 |
deprecated. |
| 826 |
|
| 827 |
Added support for FETCH modifiers (#62) [NEW] |
| 828 |
--------------------------------------------- |
| 829 |
The fetch method now takes optional modifiers as the last |
| 830 |
argument. These are required for extensions such as RFC 4551 |
| 831 |
(conditional store). Thanks to Thomas Jost for the patch. |
| 832 |
|
| 833 |
=============== |
| 834 |
Version 0.6.2 |
| 835 |
=============== |
| 836 |
|
| 837 |
Square brackets in responses now parsed correctly (#55) |
| 838 |
------------------------------------------------------- |
| 839 |
This fixes response handling for FETCH items such as |
| 840 |
``BODY[HEADER.FIELDS (from subject)]``. |
| 841 |
|
| 842 |
Example moved (#56) |
| 843 |
------------------- |
| 844 |
The example has been moved to imapclient/examples directory and is |
| 845 |
included when the IMAPClient is installed from PyPI. |
| 846 |
|
| 847 |
Distribute (#57) |
| 848 |
---------------- |
| 849 |
The project is now packaged using Distribute instead of |
| 850 |
setuptools. There should be no real functional change. |
| 851 |
|
| 852 |
=============== |
| 853 |
Version 0.6.1 |
| 854 |
=============== |
| 855 |
|
| 856 |
Python SSL bug patch |
| 857 |
-------------------- |
| 858 |
Automatically patch a bug in imaplib which can cause hangs when using |
| 859 |
SSL (Python Issue 5949). The patch is only applied when the running |
| 860 |
Python version is known to be affected by the problem. |
| 861 |
|
| 862 |
Doc update |
| 863 |
---------- |
| 864 |
Updated the README to better reflect the current state of the project. |
| 865 |
|
| 866 |
============= |
| 867 |
Version 0.6 |
| 868 |
============= |
| 869 |
|
| 870 |
New response parser (#1, #45) |
| 871 |
----------------------------- |
| 872 |
Command response lexing and parsing code rewritten from stratch to |
| 873 |
deal with various bugs that surfaced when dealing with more complex |
| 874 |
responses (eg. BODYSTRUCTURE and ENVELOPE). This change also fixes |
| 875 |
various problems when interacting with Gmail and MS Exchange. |
| 876 |
|
| 877 |
XLIST extension support (#25) [NEW] |
| 878 |
----------------------------------- |
| 879 |
Where the server supports it, xlist_folders() will return a mapping of |
| 880 |
various common folder names to the actual server folder names. Gmail's |
| 881 |
IMAP server supports this. |
| 882 |
|
| 883 |
Added COPY command support (#36) [NEW] |
| 884 |
-------------------------------------- |
| 885 |
New copy() method. |
| 886 |
|
| 887 |
Added interact.py [NEW] |
| 888 |
----------------------- |
| 889 |
A script for interactive IMAPClient sessions. Useful for debugging and |
| 890 |
exploration. Uses IPython if installed. |
| 891 |
|
| 892 |
Full SELECT response (#24) [API CHANGE] |
| 893 |
--------------------------------------- |
| 894 |
select_folder() now returns a dictionary with the full (parsed) SELECT |
| 895 |
command response instead of just the message count. |
| 896 |
|
| 897 |
Full list responses (#24) [API CHANGE] |
| 898 |
-------------------------------------- |
| 899 |
The return value from list_folders(), list_sub_folders() and |
| 900 |
xlist_folders() now include the IMAP folder flags and delimiter. |
| 901 |
|
| 902 |
Folder name character encoding (#21) [API CHANGE] |
| 903 |
------------------------------------------------- |
| 904 |
Bytes that are greater than 0x7f in folder names are will cause an |
| 905 |
exception when passed to methods that accept folder name arguments |
| 906 |
because there is no unambigous way to handle these. Callers should |
| 907 |
encode such folder names to unicode objects first. |
| 908 |
|
| 909 |
Folder names are now always returned as unicode objects. |
| 910 |
|
| 911 |
Message sequence number now always returned in FETCH responses |
| 912 |
-------------------------------------------------------------- |
| 913 |
Fetch responses now include a "SEQ" element which gives the message |
| 914 |
(non-UID) sequence number. This allows for easy mapping between UIDs |
| 915 |
and standard sequence IDs. |
| 916 |
|
| 917 |
Folder name handling fixes (#28, #42) |
| 918 |
------------------------------------- |
| 919 |
Various folder name handling bugs fixed. |
| 920 |
|
| 921 |
|
| 922 |
=============== |
| 923 |
Version 0.5.2 |
| 924 |
=============== |
| 925 |
|
| 926 |
Folder name quoting and escaping fixes (#28) |
| 927 |
-------------------------------------------- |
| 928 |
Correctly handle double quotes and backslashes in folder names when |
| 929 |
parsing LIST and LSUB responses. |
| 930 |
|
| 931 |
Fixed fetch literal handling (#33) |
| 932 |
---------------------------------- |
| 933 |
Fixed problem with parsing responses where a literal followed another |
| 934 |
literal. |
| 935 |
|
| 936 |
|
| 937 |
=============== |
| 938 |
Version 0.5.1 |
| 939 |
=============== |
| 940 |
|
| 941 |
License change |
| 942 |
-------------- |
| 943 |
Changed license from GPL to new BSD. |
| 944 |
|
| 945 |
============= |
| 946 |
Version 0.5 |
| 947 |
============= |
| 948 |
|
| 949 |
SSL support |
| 950 |
----------- |
| 951 |
Support for SSL based connections by passing ssl=True when |
| 952 |
constructing an IMAPClient instance. |
| 953 |
|
| 954 |
Transparent folder encoding |
| 955 |
--------------------------- |
| 956 |
Folder names are now encoded and decoded transparently if required |
| 957 |
(using modified UTF-7). This means that any methods that return folder |
| 958 |
names may return unicode objects as well as normal strings [API |
| 959 |
CHANGE]. Additionally, any method that takes a folder name now accepts |
| 960 |
unicode object too. Use the folder_encode attribute to control whether |
| 961 |
encode/decoding is performed. |
| 962 |
|
| 963 |
Unquoted folder name handling fix |
| 964 |
--------------------------------- |
| 965 |
Unquoted folder names in server responses are now handled |
| 966 |
correctly. Thanks to Neil Martinsen-Burrell for reporting this bug. |
| 967 |
|
| 968 |
Fixed handling of unusual characters in folder names |
| 969 |
---------------------------------------------------- |
| 970 |
Fixed a bug with handling of unusual characters in folder names. |
| 971 |
|
| 972 |
Timezone handling [API CHANGE] |
| 973 |
------------------------------ |
| 974 |
Timezones are now handled correctly for datetimes passed as input and for |
| 975 |
server responses. This fixes a number of bugs with timezones. Returned |
| 976 |
datetimes are always in the client's local timezone. |
| 977 |
|
| 978 |
More unit tests |
| 979 |
--------------- |
| 980 |
Many more unit tests added, some using Michael Foord's excellent |
| 981 |
mock.py. (http://www.voidspace.org.uk/python/mock/) |
| 982 |
|
| 983 |
|