]> khamidou — GitHub mirrors - imapclient.git/log
imapclient.git
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.

11 years agoUpgraded ez_setup.py to 18.0.1
Menno Smits [Tue, 7 Jul 2015 03:39:52 +0000 (15:39 +1200)]
Upgraded ez_setup.py to 18.0.1

11 years agoIgnore the .eggs cache directory
Menno Smits [Tue, 7 Jul 2015 03:39:19 +0000 (15:39 +1200)]
Ignore the .eggs cache directory

11 years agoRun tox tests straight out of the source checkout
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

11 years agoAdded a source distribution build script
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

11 years agomerged stable to default
Menno Smits [Mon, 6 Jul 2015 22:44:59 +0000 (10:44 +1200)]
merged stable to default

11 years agomention Python 3.4 support in setup.py
Menno Smits [Mon, 6 Jul 2015 22:44:40 +0000 (10:44 +1200)]
mention Python 3.4 support in setup.py

--HG--
branch : stable

11 years agoMerged stable into default
Menno Smits [Tue, 30 Jun 2015 09:59:57 +0000 (21:59 +1200)]
Merged stable into default

--HG--
branch : stable

11 years agoMerged stable into default
Menno Smits [Tue, 30 Jun 2015 09:56:24 +0000 (21:56 +1200)]
Merged stable into default

11 years agoREADME.rst edited online with Bitbucket
Menno Smits [Tue, 30 Jun 2015 09:51:56 +0000 (09:51 +0000)]
README.rst edited online with Bitbucket

11 years agoAdded tag 0.13 for changeset c076ec55a74f
Menno Smits [Tue, 30 Jun 2015 09:25:49 +0000 (21:25 +1200)]
Added tag 0.13 for changeset c076ec55a74f

--HG--
branch : stable

11 years agoCONDSTORE live test is now more reliable 0.13
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

11 years agoMerged default into stable
Menno Smits [Tue, 30 Jun 2015 03:14:50 +0000 (15:14 +1200)]
Merged default into stable

--HG--
branch : stable

11 years agobump version 0.13-final
Menno Smits [Tue, 30 Jun 2015 03:13:49 +0000 (15:13 +1200)]
bump version 0.13-final

11 years agomention doc updates for 0.13
Menno Smits [Tue, 30 Jun 2015 02:41:48 +0000 (14:41 +1200)]
mention doc updates for 0.13

11 years agoAdded some guidance on writing unit tests to HACKING.rst
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.

11 years agoCleaned up HACKING.rst
Menno Smits [Tue, 30 Jun 2015 02:34:52 +0000 (14:34 +1200)]
Cleaned up HACKING.rst

11 years agoCleaned up list_folders docs
Menno Smits [Tue, 30 Jun 2015 01:27:43 +0000 (13:27 +1200)]
Cleaned up list_folders docs

Fixes #146.

11 years agoMake it clear that gmail_search only works with Gmail
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.

11 years agoMoved datetime_to_imap to datetime_util.datetime_to_INTERNALDATE
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.

11 years agoUse parse_to_datetime for INTERNALDATE parsing
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.

11 years agoRenamed _normalise to _munge to avoid overlap with the other meaning of "normalise...
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

11 years agoMention date parsing fixes in NEWS
Menno Smits [Mon, 29 Jun 2015 22:57:22 +0000 (10:57 +1200)]
Mention date parsing fixes in NEWS

11 years agoSupport dot as the time separator in timestamp strings
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.

11 years agoDon't traceback when unparseable dates are seen in ENVELOPE
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.

11 years agoDoc tweaks
Menno Smits [Tue, 2 Jun 2015 12:37:47 +0000 (00:37 +1200)]
Doc tweaks

11 years agoThere's going to be a 0.13 release
Menno Smits [Tue, 2 Jun 2015 12:36:58 +0000 (00:36 +1200)]
There's going to be a 0.13 release

11 years agoFixed a syntax error in the id_() docstring and extended slightly
Menno Smits [Tue, 2 Jun 2015 12:35:03 +0000 (00:35 +1200)]
Fixed a syntax error in the id_() docstring and extended slightly

11 years agoThank yous for ID support
Menno Smits [Tue, 2 Jun 2015 12:29:59 +0000 (00:29 +1200)]
Thank yous for ID support

11 years agoFix ID tests to work under Python 3
Menno Smits [Tue, 2 Jun 2015 12:27:33 +0000 (00:27 +1200)]
Fix ID tests to work under Python 3

11 years agoAdd support for the ID command (RFC2971)
Eben Freeman [Tue, 2 Jun 2015 12:24:07 +0000 (00:24 +1200)]
Add support for the ID command (RFC2971)

11 years agoignore the .eggs directory
Menno Smits [Tue, 2 Jun 2015 12:10:18 +0000 (00:10 +1200)]
ignore the .eggs directory

11 years agoFix setup.py to run in python3
A Frederick Christensen [Wed, 13 May 2015 18:29:19 +0000 (14:29 -0400)]
Fix setup.py to run in python3

11 years agodoc updates for NIL handling fixes
Menno Smits [Tue, 7 Apr 2015 15:16:50 +0000 (00:16 +0900)]
doc updates for NIL handling fixes