]>
khamidou — GitHub mirrors - imapclient.git/log
Menno Smits [Mon, 7 Sep 2015 22:54:54 +0000 (10:54 +1200)]
Only use the untagged post-login CAPABILITY response once
...if sent by server in the first place.
Closes #161.
Menno Smits [Tue, 1 Sep 2015 05:46:37 +0000 (17:46 +1200)]
Correctly handle literals in STATUS responses
Also added missing unit tests for folder_status().
Fixes #174.
Menno Smits [Tue, 1 Sep 2015 05:01:23 +0000 (17:01 +1200)]
Document how to use IMAPClient with gevent
Closes #168.
Menno Smits [Tue, 1 Sep 2015 03:30:42 +0000 (15:30 +1200)]
Added a "shutdown" method.
Allows closing of the underlying socket.
Closes #173.
Menno Smits [Tue, 1 Sep 2015 03:18:46 +0000 (15:18 +1200)]
merge
Menno Smits [Tue, 1 Sep 2015 03:04:57 +0000 (15:04 +1200)]
Support regex matching in "alternates" live test
Menno Smits [Tue, 1 Sep 2015 02:50:21 +0000 (14:50 +1200)]
Updated unit tests to account for timeout support
Menno Smits [Tue, 1 Sep 2015 02:35:58 +0000 (14:35 +1200)]
Replaced super call with straight call up to superclass
imaplib.IMAP4 isn't subclassed from object in Python 2.
Menno Smits [Tue, 1 Sep 2015 00:58:29 +0000 (12:58 +1200)]
Thank tomst for initial socket timeout support
Menno Smits [Tue, 1 Sep 2015 00:55:39 +0000 (12:55 +1200)]
Added support for a socket timeout
Closes #47.
Menno Smits [Mon, 31 Aug 2015 22:17:10 +0000 (10:17 +1200)]
Mention PEP8 change in NEWS
Menno Smits [Mon, 31 Aug 2015 22:07:57 +0000 (10:07 +1200)]
Bring IMAPClient in line with PEP8.
Added pep8 tool config to tox.ini.
Closes #141.
Menno Smits [Tue, 25 Aug 2015 21:39:59 +0000 (09:39 +1200)]
Bumped backports.ssl dependency to 0.0.7
This release has some critical fixes that IMAPClient needs.
Menno Smits [Tue, 25 Aug 2015 06:19:10 +0000 (18:19 +1200)]
doc tweaks
Menno Smits [Tue, 25 Aug 2015 06:17:47 +0000 (18:17 +1200)]
Update example to use preferred search criteria style
Menno Smits [Tue, 25 Aug 2015 06:13:06 +0000 (18:13 +1200)]
Fake out backports.ssl while building docs
ReadTheDocs doesn't have it on their build servers.
Menno Smits [Tue, 25 Aug 2015 05:02:41 +0000 (17:02 +1200)]
Merged the big search criteria handling change into trunk
Menno Smits [Tue, 25 Aug 2015 04:50:32 +0000 (16:50 +1200)]
Updated docstrings with respect to search criteria handling changes
Menno Smits [Tue, 25 Aug 2015 04:29:31 +0000 (16:29 +1200)]
Big NEWS update for search criteria handling changes
Menno Smits [Tue, 25 Aug 2015 03:40:50 +0000 (15:40 +1200)]
Updated livetests to reflect search literal handling changes
search, sort, thread and gmail_search tests now predominately use the
new preferred style of sending search criteria with some testing of
the "raw string" approach.
Also: default charset for gmail_search is now UTF-8. There's no reason
not to do this given that we know Gmail supports UTF-8.
Menno Smits [Tue, 25 Aug 2015 00:38:44 +0000 (12:38 +1200)]
Allow ints in search criteria
Sometimes it's convenient to be able to use an int directly (e.g. for
SIZE or MODSEQ).
Menno Smits [Tue, 25 Aug 2015 00:18:33 +0000 (12:18 +1200)]
Don't automatically quote search criteria when provided as a single string
It's up to the caller to handle quoting if criteria are provided this way.
Menno Smits [Tue, 25 Aug 2015 00:07:45 +0000 (12:07 +1200)]
All unit tests passing again following literal handling changes
Also fixed some minor bugs in sort()'s charset handling.
Menno Smits [Tue, 18 Aug 2015 11:29:26 +0000 (23:29 +1200)]
New command sending infrastructure
Implemented the _raw_command method which largely works around imaplib
for sending commands. It will automatically use literals when 8-bit
data must be sent and supports abitrary numbers of literals (imaplib
only supports sending a single literal and it's awkward to do
so). This is especially critical for correctly allowing complex search
queries that may involve multiple 8-bit criteria.
The search, sort, thread and gmail_search methods now all use the new
infrastructure. Soon, some version of _raw_command will be become the
only way that IMAPClient sends commands. This work also paves the way
for removing the dependency on imaplib.
This work is not yet complete. A number of test and documentation
updates are still required.
Menno Smits [Mon, 17 Aug 2015 21:30:23 +0000 (09:30 +1200)]
Missed one spot where Python 3.2 was still mentioned
Menno Smits [Tue, 11 Aug 2015 12:17:50 +0000 (00:17 +1200)]
No longer list Python 3.2 as a supported version.
Menno Smits [Tue, 11 Aug 2015 12:14:27 +0000 (00:14 +1200)]
Removed embedded six module in favour of external package
Closes #159.
Menno Smits [Tue, 11 Aug 2015 12:06:43 +0000 (00:06 +1200)]
Updated NEWS with TLS and STARTTLS changes
Menno Smits [Tue, 11 Aug 2015 10:46:09 +0000 (22:46 +1200)]
Make debug logging handle bytes better
Avoid issues with 8-bit data.
Menno Smits [Mon, 10 Aug 2015 23:45:15 +0000 (11:45 +1200)]
Mention numeric folder name fix in NEWS
Menno Smits [Mon, 10 Aug 2015 23:42:43 +0000 (11:42 +1200)]
Fixed test_unqouted_numeric_folder_name_parsed_as_long for Python 3
Menno Smits [Tue, 4 Aug 2015 05:45:56 +0000 (17:45 +1200)]
Merged in gonzomember/imapclient (pull request #11)
Fixed folder name processing for unqouted numeric names that overflow maxint and get parsed as longs
Menno Smits [Tue, 4 Aug 2015 05:16:03 +0000 (17:16 +1200)]
Fixed charset handling for search, sort and thread
Lots of awkward handling added to deal with imaplib unicode handling
inconsistencies and variation in imaplib between Python versions.
Fixes #93.
Paweł Gorzelany [Mon, 3 Aug 2015 16:16:45 +0000 (18:16 +0200)]
Fixed folder name processing for unqouted numeric names that overflow maxint and get parsed as longs
Menno Smits [Tue, 28 Jul 2015 10:54:21 +0000 (22:54 +1200)]
Thank Thomi
Menno Smits [Tue, 28 Jul 2015 10:52:23 +0000 (22:52 +1200)]
Bumped mock dependency to 1.3.0
Fixes #160.
Menno Smits [Tue, 28 Jul 2015 10:48:01 +0000 (22:48 +1200)]
Documentation updates for TLS support
Menno Smits [Tue, 28 Jul 2015 03:12:25 +0000 (15:12 +1200)]
Handle TLS wrapping errors correctly and support socket shutdown
Menno Smits [Tue, 28 Jul 2015 03:11:47 +0000 (15:11 +1200)]
Shut down the client if TLS handshake or login fails
Avoids ResourceWarnings in Python 3.
Menno Smits [Tue, 28 Jul 2015 03:10:49 +0000 (15:10 +1200)]
Set new options when using imapclient.interact
Menno Smits [Tue, 28 Jul 2015 01:55:17 +0000 (13:55 +1200)]
Cleaned up Gmail label live test
Menno Smits [Tue, 28 Jul 2015 01:55:04 +0000 (13:55 +1200)]
Fixed regression in Gmail label handling
Allow single labels not inside a sequence again.
Menno Smits [Mon, 27 Jul 2015 23:51:17 +0000 (11:51 +1200)]
Merged TLS fork
Hooray \o/
This work is mosttly done and the differences from trunk were starting
to become annoying.
Menno Smits [Mon, 27 Jul 2015 23:37:14 +0000 (11:37 +1200)]
Make flag constants bytes
So that they can be used to compare against flags returned by fetch().
Fixes #165.
Menno Smits [Mon, 27 Jul 2015 23:27:56 +0000 (11:27 +1200)]
Fixed bad merge
Menno Smits [Mon, 27 Jul 2015 23:17:52 +0000 (11:17 +1200)]
merge
Menno Smits [Mon, 27 Jul 2015 23:07:51 +0000 (11:07 +1200)]
Clean ups for Gmail label quoting change
- unit tests pass again
- quoting is now tested
- updated NEWS
Menno Smits [Mon, 27 Jul 2015 23:05:40 +0000 (11:05 +1200)]
Merged stable to default
pwls [Mon, 27 Jul 2015 23:04:36 +0000 (11:04 +1200)]
Fix add/set/remove_gmail_labels method for non trivial folder names.
Menno Smits [Tue, 21 Jul 2015 11:03:00 +0000 (23:03 +1200)]
Speed up message id list parsing (dramatically)
Use a fast, specialised function when parsing message id lists.
Fixes #162.
Menno Smits [Tue, 21 Jul 2015 04:39:01 +0000 (16:39 +1200)]
Support multiple configurations per livetest config file
These are now used by the test_alternate livetest case. This allows
quicker testing different TLS and authentication configuration without
requiring a separate livetest file (and therefore a separate full
livetest run).
Configurations that are expected to failre are now also allowed to
support testing of the various new TLS options.
Menno Smits [Tue, 21 Jul 2015 03:23:50 +0000 (15:23 +1200)]
Fixed dumb bugs in certificate error handling
Menno Smits [Tue, 21 Jul 2015 03:19:11 +0000 (15:19 +1200)]
Support TLS related options in livetest config files
Menno Smits [Tue, 21 Jul 2015 02:18:26 +0000 (14:18 +1200)]
Undid some bogus unicode changes from early in this feature branch
The live tests indicated that these were wrong under Python 3.
Menno Smits [Tue, 21 Jul 2015 02:12:01 +0000 (14:12 +1200)]
Implement more in IMAP4_TLS to work around backports.ssl limitations
Menno Smits [Mon, 20 Jul 2015 22:29:05 +0000 (10:29 +1200)]
Give a more useful error when backports.ssl isn't installed.
Menno Smits [Mon, 20 Jul 2015 22:28:37 +0000 (10:28 +1200)]
Make it easier to import get_default_context
Menno Smits [Tue, 14 Jul 2015 06:05:43 +0000 (18:05 +1200)]
Use backports.ssl for all TLS/SSL connections
All unit tests and live tests passing.
Menno Smits [Tue, 14 Jul 2015 05:09:40 +0000 (17:09 +1200)]
Missed copyright header
Menno Smits [Tue, 14 Jul 2015 04:32:29 +0000 (16:32 +1200)]
Docstring update given backports.ssl change
Menno Smits [Tue, 14 Jul 2015 04:22:57 +0000 (16:22 +1200)]
Use backports.ssl instead of using pyOpenSSL directly
This allows a bunch of code that was lifted from backports.ssl and
Python 3.4 to be removed from IMAPClient. This change also gives users
a familiar SSLContext API (i.e. the stdlib one) instead of the
unfriendly pyOpenSSL SSLContext.
The service_identity dependency has also been removed as backports.ssl
does certificate hostname verification.
Menno Smits [Tue, 14 Jul 2015 00:55:06 +0000 (12:55 +1200)]
Realign unicode/bytes expectations in some unit tests
Menno Smits [Tue, 14 Jul 2015 00:47:01 +0000 (12:47 +1200)]
Clear cached capabilities after successful STARTTLS
Menno Smits [Mon, 13 Jul 2015 23:24:28 +0000 (11:24 +1200)]
Added starttls unit tests and cleaned up starttls
- use _checkok() to check command response
- set _starttls_done, not _tls_established
- return data[0], don't check untagged responses
Also standardised error raised by _check_resp() across all Python
versions.
Menno Smits [Mon, 13 Jul 2015 22:29:45 +0000 (10:29 +1200)]
Added missing copyright header
Menno Smits [Tue, 7 Jul 2015 05:53:46 +0000 (17:53 +1200)]
Resynced to trunk
Menno Smits [Tue, 7 Jul 2015 05:46:39 +0000 (17:46 +1200)]
merged from repo
Menno Smits [Tue, 7 Jul 2015 05:42:20 +0000 (17:42 +1200)]
Rearrange STARTTLS support to be a little more sane
The tls module is now just for TLS related helpers.
All unit tests now (finally!) passing under all supported Python
versions.
Menno Smits [Tue, 7 Jul 2015 05:33:01 +0000 (17:33 +1200)]
fixed imports for test_version.py
Menno Smits [Tue, 7 Jul 2015 05:32:36 +0000 (17:32 +1200)]
unicode_literals import into version.py
Menno Smits [Tue, 7 Jul 2015 04:39:49 +0000 (16:39 +1200)]
Removed py32 from tox.ini
Menno Smits [Tue, 7 Jul 2015 04:13:52 +0000 (16:13 +1200)]
Fixed version info read in setup.py so it works in Python 3 too
Menno Smits [Tue, 7 Jul 2015 03:45:15 +0000 (15:45 +1200)]
Added copyright notice to version.py
Menno Smits [Tue, 7 Jul 2015 03:44:26 +0000 (15:44 +1200)]
Include sphinx as a setup dependency & be specific about required dependency versions.
Menno Smits [Tue, 7 Jul 2015 03:39:52 +0000 (15:39 +1200)]
Upgraded ez_setup.py to 18.0.1
Menno Smits [Tue, 7 Jul 2015 03:39:19 +0000 (15:39 +1200)]
Ignore the .eggs cache directory
Menno Smits [Tue, 7 Jul 2015 03:38:52 +0000 (15:38 +1200)]
Run tox tests straight out of the source checkout
To work around: https://bitbucket.org/pypa/setuptools/issue/141
Menno Smits [Tue, 7 Jul 2015 03:36:23 +0000 (15:36 +1200)]
Added a source distribution build script
To work around: https://bitbucket.org/pypa/setuptools/issue/141
Menno Smits [Mon, 6 Jul 2015 22:44:59 +0000 (10:44 +1200)]
merged stable to default
Menno Smits [Mon, 6 Jul 2015 22:44:40 +0000 (10:44 +1200)]
mention Python 3.4 support in setup.py
--HG--
branch : stable
Menno Smits [Tue, 30 Jun 2015 09:59:57 +0000 (21:59 +1200)]
Merged stable into default
--HG--
branch : stable
Menno Smits [Tue, 30 Jun 2015 09:56:24 +0000 (21:56 +1200)]
Merged stable into default
Menno Smits [Tue, 30 Jun 2015 09:51:56 +0000 (09:51 +0000)]
README.rst edited online with Bitbucket
Menno Smits [Tue, 30 Jun 2015 09:25:49 +0000 (21:25 +1200)]
Added tag 0.13 for changeset
c076ec55a74f
--HG--
branch : stable
Menno Smits [Tue, 30 Jun 2015 09:25:18 +0000 (21:25 +1200)]
CONDSTORE live test is now more reliable
... especially on Gmail. Don't assume that adding a message will
increment the MODSEQ by just 1.
Fixes #129.
--HG--
branch : stable
Menno Smits [Tue, 30 Jun 2015 03:14:50 +0000 (15:14 +1200)]
Merged default into stable
--HG--
branch : stable
Menno Smits [Tue, 30 Jun 2015 03:13:49 +0000 (15:13 +1200)]
bump version 0.13-final
Menno Smits [Tue, 30 Jun 2015 02:41:48 +0000 (14:41 +1200)]
mention doc updates for 0.13
Menno Smits [Tue, 30 Jun 2015 02:40:59 +0000 (14:40 +1200)]
Added some guidance on writing unit tests to HACKING.rst
Fixes #149.
Menno Smits [Tue, 30 Jun 2015 02:34:52 +0000 (14:34 +1200)]
Cleaned up HACKING.rst
Menno Smits [Tue, 30 Jun 2015 01:27:43 +0000 (13:27 +1200)]
Cleaned up list_folders docs
Fixes #146.
Menno Smits [Tue, 30 Jun 2015 01:10:24 +0000 (13:10 +1200)]
Make it clear that gmail_search only works with Gmail
Fixes #151.
Menno Smits [Mon, 29 Jun 2015 23:41:00 +0000 (11:41 +1200)]
Moved datetime_to_imap to datetime_util.datetime_to_INTERNALDATE
This fixes #126.
Menno Smits [Mon, 29 Jun 2015 23:27:02 +0000 (11:27 +1200)]
Use parse_to_datetime for INTERNALDATE parsing
The previous INTERNALDATE parsing code was horrible. The INTERNALDATE
test cases have been simplified because parse_to_datetime is already
tested elsewhere.
This is part of the fix for issue #126.
Menno Smits [Mon, 29 Jun 2015 23:04:14 +0000 (11:04 +1200)]
Renamed _normalise to _munge to avoid overlap with the other meaning of "normalise" here
Menno Smits [Mon, 29 Jun 2015 22:57:22 +0000 (10:57 +1200)]
Mention date parsing fixes in NEWS
Menno Smits [Mon, 29 Jun 2015 22:52:02 +0000 (10:52 +1200)]
Support dot as the time separator in timestamp strings
This is unconventional but has been seen in the wild. Fixes #154.
Menno Smits [Mon, 29 Jun 2015 22:14:55 +0000 (10:14 +1200)]
Don't traceback when unparseable dates are seen in ENVELOPE
Part of the fix for issue #154.
Menno Smits [Tue, 2 Jun 2015 12:37:47 +0000 (00:37 +1200)]
Doc tweaks
Menno Smits [Tue, 2 Jun 2015 12:36:58 +0000 (00:36 +1200)]
There's going to be a 0.13 release