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

11 years agoExtended and cleaned up ENVELOPE tests
Menno Smits [Tue, 7 Apr 2015 15:16:29 +0000 (00:16 +0900)]
Extended and cleaned up ENVELOPE tests

11 years agoRegression: Fix search when None is returned
Thomas Steinacher [Mon, 6 Apr 2015 14:40:44 +0000 (16:40 +0200)]
Regression: Fix search when None is returned

11 years agoFix exception with NIL address in envelope
Thomas Steinacher [Mon, 6 Apr 2015 12:03:49 +0000 (14:03 +0200)]
Fix exception with NIL address in envelope

11 years agoUpdated information about the home page and blog.
Menno Smits [Thu, 5 Mar 2015 02:06:08 +0000 (15:06 +1300)]
Updated information about the home page and blog.

11 years agoUpdated README given that imapclient.freshfoo.com is going to be hosted at bitbucket
Menno Smits [Sat, 28 Feb 2015 10:53:16 +0000 (23:53 +1300)]
Updated README given that imapclient.freshfoo.com is going to be hosted at bitbucket

11 years agoMention the IMAP protocol wiki in the docs
Menno Smits [Sat, 28 Feb 2015 10:35:37 +0000 (23:35 +1300)]
Mention the IMAP protocol wiki in the docs

11 years agoreformat urls
Menno Smits [Thu, 29 Jan 2015 12:14:29 +0000 (01:14 +1300)]
reformat urls

11 years agoNilas updates
Menno Smits [Thu, 29 Jan 2015 03:44:32 +0000 (16:44 +1300)]
Nilas updates

11 years agomoved the internal _SSLConnection class further down the file
Menno Smits [Fri, 23 Jan 2015 10:35:55 +0000 (23:35 +1300)]
moved the internal _SSLConnection class further down the file

11 years agorenamed ssl_default_context to get_default_context
Menno Smits [Fri, 23 Jan 2015 10:33:57 +0000 (23:33 +1300)]
renamed ssl_default_context to get_default_context

11 years agorenamed imapclient.imaptls to imapclient.tls
Menno Smits [Fri, 23 Jan 2015 10:32:18 +0000 (23:32 +1300)]
renamed imapclient.imaptls to imapclient.tls

11 years agoignore all kinds of egg installations
Menno Smits [Fri, 23 Jan 2015 10:31:42 +0000 (23:31 +1300)]
ignore all kinds of egg installations

11 years agoStop passing list command names as unicode
Menno Smits [Fri, 23 Jan 2015 10:27:49 +0000 (23:27 +1300)]
Stop passing list command names as unicode

List commands now work with pyOpenSSL.

11 years agosimplify reading of version module
Menno Smits [Fri, 23 Jan 2015 09:23:33 +0000 (22:23 +1300)]
simplify reading of version module

11 years agoInstall deps at setup time too (so that docs can build)
Menno Smits [Fri, 23 Jan 2015 09:20:46 +0000 (22:20 +1300)]
Install deps at setup time too (so that docs can build)

11 years agoPut version back to 1.0.0-alpha
Menno Smits [Fri, 23 Jan 2015 09:17:29 +0000 (22:17 +1300)]
Put version back to 1.0.0-alpha

This change was lost when merging SpotlightKid's SSL changes.

11 years agobumped version to 1.0.0-alpha
Menno Smits [Mon, 12 Jan 2015 21:27:11 +0000 (10:27 +1300)]
bumped version to 1.0.0-alpha

11 years agomerged tags from stable
Menno Smits [Mon, 12 Jan 2015 21:26:35 +0000 (10:26 +1300)]
merged tags from stable

11 years agoAdded tag 0.12 for changeset 10c1e06ec8f2
Menno Smits [Mon, 12 Jan 2015 11:36:53 +0000 (00:36 +1300)]
Added tag 0.12 for changeset 10c1e06ec8f2

--HG--
branch : stable

11 years agoMerged 0.12 changes to stable 0.12
Menno Smits [Mon, 12 Jan 2015 11:36:32 +0000 (00:36 +1300)]
Merged 0.12 changes to stable

--HG--
branch : stable