]> khamidou — GitHub mirrors - imapclient.git/log
imapclient.git
11 years agoAlways include the micro number in the version 1.0.0
Menno Smits [Tue, 24 Nov 2015 02:15:17 +0000 (15:15 +1300)]
Always include the micro number in the version

--HG--
branch : stable

11 years agoMerged default into stable
Menno Smits [Tue, 24 Nov 2015 02:06:01 +0000 (15:06 +1300)]
Merged default into stable

--HG--
branch : stable

11 years agoVersion bumps for 1.0.0
Menno Smits [Tue, 24 Nov 2015 02:03:56 +0000 (15:03 +1300)]
Version bumps for 1.0.0

11 years agoFix folder_exists
Menno Smits [Tue, 24 Nov 2015 00:22:27 +0000 (13:22 +1300)]
Fix folder_exists

A recent change didn't work under Python 3 and was less efficient than
the previous version.

11 years agoFix accidentally removed import
Menno Smits [Tue, 24 Nov 2015 00:08:42 +0000 (13:08 +1300)]
Fix accidentally removed import

11 years agoadd config for universal wheels
Menno Smits [Mon, 23 Nov 2015 23:52:47 +0000 (12:52 +1300)]
add config for universal wheels

11 years agoUse correct "interact" imports for IPython 4
Menno Smits [Mon, 23 Nov 2015 23:43:45 +0000 (12:43 +1300)]
Use correct "interact" imports for IPython 4

This avoids a deprecation warning during import.

Fixes #157.

11 years agoMention Address.__str__ fix
Menno Smits [Mon, 23 Nov 2015 23:09:36 +0000 (12:09 +1300)]
Mention Address.__str__ fix

11 years agoAdded Ivan Zderadicka
Menno Smits [Mon, 23 Nov 2015 23:07:32 +0000 (12:07 +1300)]
Added Ivan Zderadicka

11 years agoNormalise to unicode in Address.__str__
Menno Smits [Mon, 23 Nov 2015 22:49:28 +0000 (11:49 +1300)]
Normalise to unicode in Address.__str__

__str__ was failing when the address fields were bytes (which the
typically are).

Fixes #186.

11 years agoMoved to_bytes and to_unicode to separate module
Menno Smits [Mon, 23 Nov 2015 22:40:55 +0000 (11:40 +1300)]
Moved to_bytes and to_unicode to separate module

11 years agoUpdated exceptions documentation for 1.0
Menno Smits [Tue, 17 Nov 2015 04:02:08 +0000 (17:02 +1300)]
Updated exceptions documentation for 1.0

11 years agoMention Yahoo OAUTH livetest support
Menno Smits [Tue, 27 Oct 2015 10:27:37 +0000 (23:27 +1300)]
Mention Yahoo OAUTH livetest support

11 years agoAdded livetest support for OAUTH2 with Yahoo
Menno Smits [Tue, 27 Oct 2015 05:22:12 +0000 (18:22 +1300)]
Added livetest support for OAUTH2 with Yahoo

11 years agoMention semantic versioning in docs
Menno Smits [Tue, 27 Oct 2015 00:23:47 +0000 (13:23 +1300)]
Mention semantic versioning in docs

Closes #140.

11 years agoUpdated list of IMAP servers that are tested against
Menno Smits [Tue, 27 Oct 2015 00:21:17 +0000 (13:21 +1300)]
Updated list of IMAP servers that are tested against

11 years agoRelease docs update
Menno Smits [Mon, 26 Oct 2015 23:45:12 +0000 (12:45 +1300)]
Release docs update

11 years agoClarify how IMAP message ids work in the docs
Menno Smits [Mon, 26 Oct 2015 23:44:12 +0000 (12:44 +1300)]
Clarify how IMAP message ids work in the docs

Fixes #181.

11 years agoIndicate in docs that gevent_openssl 1.2 or later is recommended
Menno Smits [Mon, 26 Oct 2015 23:09:25 +0000 (12:09 +1300)]
Indicate in docs that gevent_openssl 1.2 or later is recommended

11 years agoImplement folder_exists in terms of list_folders
Menno Smits [Tue, 15 Sep 2015 09:37:48 +0000 (21:37 +1200)]
Implement folder_exists in terms of list_folders

Closes #147.

11 years agoUpdated SEARCH related release notes using text from blog article
Menno Smits [Tue, 15 Sep 2015 04:01:22 +0000 (16:01 +1200)]
Updated SEARCH related release notes using text from blog article

11 years agoSupport date and datetime instances in search criteria
Menno Smits [Mon, 14 Sep 2015 22:37:55 +0000 (10:37 +1200)]
Support date and datetime instances in search criteria

These are converted to the correctly formatted date strings.
Closes #170.

11 years agoRelease history (aka NEWS.rst) now part of the main docs.
Menno Smits [Tue, 8 Sep 2015 04:45:41 +0000 (16:45 +1200)]
Release history (aka NEWS.rst) now part of the main docs.

Closes #171.

11 years agoFixed dict normalisation in livetests
Menno Smits [Tue, 8 Sep 2015 02:35:23 +0000 (14:35 +1200)]
Fixed dict normalisation in livetests

Use _dict_bytes_normaliser instead of (now removed)
normalise_untagged_responses.

11 years agoExtracted config defaults so that interact.py doesn't have to keep up with new config...
Menno Smits [Tue, 8 Sep 2015 02:22:48 +0000 (14:22 +1200)]
Extracted config defaults so that interact.py doesn't have to keep up with new config options.

11 years agoRemoved normalise_untagged_responses
Menno Smits [Mon, 7 Sep 2015 23:24:45 +0000 (11:24 +1200)]
Removed normalise_untagged_responses

Use the (now extended) _dict_bytes_normaliser class instead. This
avoids unnecessary copying of the input dict which should be more
efficient.

11 years agoOnly use the untagged post-login CAPABILITY response once
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.

11 years agoCorrectly handle literals in STATUS responses
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.

11 years agoDocument how to use IMAPClient with gevent
Menno Smits [Tue, 1 Sep 2015 05:01:23 +0000 (17:01 +1200)]
Document how to use IMAPClient with gevent

Closes #168.

11 years agoAdded a "shutdown" method.
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.

11 years agomerge
Menno Smits [Tue, 1 Sep 2015 03:18:46 +0000 (15:18 +1200)]
merge

11 years agoSupport regex matching in "alternates" live test
Menno Smits [Tue, 1 Sep 2015 03:04:57 +0000 (15:04 +1200)]
Support regex matching in "alternates" live test

11 years agoUpdated unit tests to account for timeout support
Menno Smits [Tue, 1 Sep 2015 02:50:21 +0000 (14:50 +1200)]
Updated unit tests to account for timeout support

11 years agoReplaced super call with straight call up to superclass
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.

11 years agoThank tomst for initial socket timeout support
Menno Smits [Tue, 1 Sep 2015 00:58:29 +0000 (12:58 +1200)]
Thank tomst for initial socket timeout support

11 years agoAdded support for a socket timeout
Menno Smits [Tue, 1 Sep 2015 00:55:39 +0000 (12:55 +1200)]
Added support for a socket timeout

Closes #47.

11 years agoMention PEP8 change in NEWS
Menno Smits [Mon, 31 Aug 2015 22:17:10 +0000 (10:17 +1200)]
Mention PEP8 change in NEWS

11 years agoBring IMAPClient in line with PEP8.
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.

11 years agoBumped backports.ssl dependency to 0.0.7
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.

11 years agodoc tweaks
Menno Smits [Tue, 25 Aug 2015 06:19:10 +0000 (18:19 +1200)]
doc tweaks

11 years agoUpdate example to use preferred search criteria style
Menno Smits [Tue, 25 Aug 2015 06:17:47 +0000 (18:17 +1200)]
Update example to use preferred search criteria style

11 years agoFake out backports.ssl while building docs
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.

11 years agoMerged the big search criteria handling change into trunk
Menno Smits [Tue, 25 Aug 2015 05:02:41 +0000 (17:02 +1200)]
Merged the big search criteria handling change into trunk

11 years agoUpdated docstrings with respect to search criteria handling changes
Menno Smits [Tue, 25 Aug 2015 04:50:32 +0000 (16:50 +1200)]
Updated docstrings with respect to search criteria handling changes

11 years agoBig NEWS update for 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

11 years agoUpdated livetests to reflect search literal 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.

11 years agoAllow ints in search criteria
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).

11 years agoDon't automatically quote search criteria when provided as a single string
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.

11 years agoAll unit tests passing again following literal handling changes
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.

11 years agoNew command sending infrastructure
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.

11 years agoMissed one spot where Python 3.2 was still mentioned
Menno Smits [Mon, 17 Aug 2015 21:30:23 +0000 (09:30 +1200)]
Missed one spot where Python 3.2 was still mentioned

11 years agoNo longer list Python 3.2 as a supported version.
Menno Smits [Tue, 11 Aug 2015 12:17:50 +0000 (00:17 +1200)]
No longer list Python 3.2 as a supported version.

11 years agoRemoved embedded six module in favour of external package
Menno Smits [Tue, 11 Aug 2015 12:14:27 +0000 (00:14 +1200)]
Removed embedded six module in favour of external package

Closes #159.

11 years agoUpdated NEWS with TLS and STARTTLS changes
Menno Smits [Tue, 11 Aug 2015 12:06:43 +0000 (00:06 +1200)]
Updated NEWS with TLS and STARTTLS changes

11 years agoMake debug logging handle bytes better
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.

11 years agoMention numeric folder name fix in NEWS
Menno Smits [Mon, 10 Aug 2015 23:45:15 +0000 (11:45 +1200)]
Mention numeric folder name fix in NEWS

11 years agoFixed test_unqouted_numeric_folder_name_parsed_as_long for Python 3
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

11 years agoMerged in gonzomember/imapclient (pull request #11)
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

11 years agoFixed charset handling for search, sort and thread
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.

11 years agoFixed folder name processing for unqouted numeric names that overflow maxint and...
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

11 years agoThank Thomi
Menno Smits [Tue, 28 Jul 2015 10:54:21 +0000 (22:54 +1200)]
Thank Thomi

11 years agoBumped mock dependency to 1.3.0
Menno Smits [Tue, 28 Jul 2015 10:52:23 +0000 (22:52 +1200)]
Bumped mock dependency to 1.3.0

Fixes #160.

11 years agoDocumentation updates for TLS support
Menno Smits [Tue, 28 Jul 2015 10:48:01 +0000 (22:48 +1200)]
Documentation updates for TLS support

11 years agoHandle TLS wrapping errors correctly and support socket shutdown
Menno Smits [Tue, 28 Jul 2015 03:12:25 +0000 (15:12 +1200)]
Handle TLS wrapping errors correctly and support socket shutdown

11 years agoShut down the client if TLS handshake or login fails
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.

11 years agoSet new options when using imapclient.interact
Menno Smits [Tue, 28 Jul 2015 03:10:49 +0000 (15:10 +1200)]
Set new options when using imapclient.interact

11 years agoCleaned up Gmail label live test
Menno Smits [Tue, 28 Jul 2015 01:55:17 +0000 (13:55 +1200)]
Cleaned up Gmail label live test

11 years agoFixed regression in Gmail label handling
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.

11 years agoMerged TLS fork
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.

11 years agoMake flag constants bytes
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.

11 years agoFixed bad merge
Menno Smits [Mon, 27 Jul 2015 23:27:56 +0000 (11:27 +1200)]
Fixed bad merge

11 years agomerge
Menno Smits [Mon, 27 Jul 2015 23:17:52 +0000 (11:17 +1200)]
merge

11 years agoClean ups for Gmail label quoting change
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

11 years agoMerged stable to default
Menno Smits [Mon, 27 Jul 2015 23:05:40 +0000 (11:05 +1200)]
Merged stable to default

11 years agoFix add/set/remove_gmail_labels method for non trivial folder names.
pwls [Mon, 27 Jul 2015 23:04:36 +0000 (11:04 +1200)]
Fix add/set/remove_gmail_labels method for non trivial folder names.

11 years agoSpeed up message id list parsing (dramatically)
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.

11 years agoSupport multiple configurations per livetest config file
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.

11 years agoFixed dumb bugs in certificate error handling
Menno Smits [Tue, 21 Jul 2015 03:23:50 +0000 (15:23 +1200)]
Fixed dumb bugs in certificate error handling

11 years agoSupport TLS related options in livetest config files
Menno Smits [Tue, 21 Jul 2015 03:19:11 +0000 (15:19 +1200)]
Support TLS related options in livetest config files

11 years agoUndid some bogus unicode changes from early in this feature branch
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.

11 years agoImplement more in IMAP4_TLS to work around backports.ssl limitations
Menno Smits [Tue, 21 Jul 2015 02:12:01 +0000 (14:12 +1200)]
Implement more in IMAP4_TLS to work around backports.ssl limitations

11 years agoGive a more useful error when backports.ssl isn't installed.
Menno Smits [Mon, 20 Jul 2015 22:29:05 +0000 (10:29 +1200)]
Give a more useful error when backports.ssl isn't installed.

11 years agoMake it easier to import get_default_context
Menno Smits [Mon, 20 Jul 2015 22:28:37 +0000 (10:28 +1200)]
Make it easier to import get_default_context

11 years agoUse backports.ssl for all TLS/SSL connections
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.

11 years agoMissed copyright header
Menno Smits [Tue, 14 Jul 2015 05:09:40 +0000 (17:09 +1200)]
Missed copyright header

11 years agoDocstring update given backports.ssl change
Menno Smits [Tue, 14 Jul 2015 04:32:29 +0000 (16:32 +1200)]
Docstring update given backports.ssl change

11 years agoUse backports.ssl instead of using pyOpenSSL directly
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.

11 years agoRealign unicode/bytes expectations in some unit tests
Menno Smits [Tue, 14 Jul 2015 00:55:06 +0000 (12:55 +1200)]
Realign unicode/bytes expectations in some unit tests

11 years agoClear cached capabilities after successful STARTTLS
Menno Smits [Tue, 14 Jul 2015 00:47:01 +0000 (12:47 +1200)]
Clear cached capabilities after successful STARTTLS

11 years agoAdded starttls unit tests and cleaned up 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.

11 years agoAdded missing copyright header
Menno Smits [Mon, 13 Jul 2015 22:29:45 +0000 (10:29 +1200)]
Added missing copyright header

11 years agoResynced to trunk
Menno Smits [Tue, 7 Jul 2015 05:53:46 +0000 (17:53 +1200)]
Resynced to trunk

11 years agomerged from repo
Menno Smits [Tue, 7 Jul 2015 05:46:39 +0000 (17:46 +1200)]
merged from repo

11 years agoRearrange STARTTLS support to be a little more sane
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.

11 years agofixed imports for test_version.py
Menno Smits [Tue, 7 Jul 2015 05:33:01 +0000 (17:33 +1200)]
fixed imports for test_version.py

11 years agounicode_literals import into version.py
Menno Smits [Tue, 7 Jul 2015 05:32:36 +0000 (17:32 +1200)]
unicode_literals import into version.py

11 years agoRemoved py32 from tox.ini
Menno Smits [Tue, 7 Jul 2015 04:39:49 +0000 (16:39 +1200)]
Removed py32 from tox.ini

11 years agoFixed version info read in setup.py so it works in Python 3 too
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

11 years agoAdded copyright notice to version.py
Menno Smits [Tue, 7 Jul 2015 03:45:15 +0000 (15:45 +1200)]
Added copyright notice to version.py

11 years agoInclude sphinx as a setup dependency & be specific about required dependency versions.
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.