summaryrefslogtreecommitdiffstats
path: root/Lib/imaplib.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23779: imaplib raises TypeError if authenticator tries to abort.Robert Collins2015-07-301-1/+1
|\ | | | | | | Patch from Craig Holmquist.
| * Issue #23779: imaplib raises TypeError if authenticator tries to abort.Robert Collins2015-07-301-1/+1
| | | | | | | | Patch from Craig Holmquist.
* | #21800: Add RFC 6855 support to imaplib.R David Murray2015-05-101-19/+58
| | | | | | | | | | Original patch by Milan Oberkirch, updated by myself and Maciej Szulik.
* | Merge: #23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.R David Murray2015-03-221-5/+6
|\ \ | |/
| * #23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes.R David Murray2015-03-221-5/+6
| |
* | merge 3.4 (#22921)Benjamin Peterson2014-11-231-4/+2
|\ \ | |/
| * don't require OpenSSL SNI to pass hostname to ssl functions (#22921)Benjamin Peterson2014-11-231-4/+2
| | | | | | | | Patch by Donald Stufft.
* | imaplib.IMAP4 now supports the context manager protocol.Serhiy Storchaka2014-09-091-0/+8
|/ | | | Original patch by Tarek Ziadé.
* #20013: don't raise socket error when selected mailbox deleted.R David Murray2014-02-071-0/+5
| | | | | | | | I'm checking this in without a test because not much of this code is tested and I don't have time to work up the necessary extensions to the existing test framework. The patch itself was tested by the person who reported the bug.
* Issue #19782: imaplib now supports SSLContext.check_hostname and server nameChristian Heimes2013-12-021-2/+6
| | | | indication for TLS/SSL connections.
* Issue #19735: Implement private function ssl._create_stdlib_context() toChristian Heimes2013-11-231-7/+5
| | | | | create SSLContext objects in Python's stdlib module. It provides a single configuration point and makes use of SSLContext.load_default_certs().
* Issue #17276: MD5 as default digestmod for HMAC is deprecated. The HMACChristian Heimes2013-11-201-1/+1
| | | | module supports digestmod names, e.g. hmac.HMAC('sha1').
* merge with 3.3Georg Brandl2013-10-271-1/+13
|\
| * Issue #16039: CVE-2013-1752: Change use of readline in imaplib module to limitGeorg Brandl2013-10-271-1/+13
| | | | | | | | line length. Patch by Emil Lind.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
| |
* | Improve imap error message in unusual failure mode.R David Murray2013-06-281-1/+1
| | | | | | | | | | | | | | | | We ran into this during the sprits at PyCon and this patch has been sitting on my disk ever since. This just adds some information to the error message that we found useful during debugging. There's no good way to add a test, since the message only got generated via code that we had modified for debugging purposes.
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | | | | | ModuleNotFoundError.
* | Merge: #17443: Fix buffering in IMAP4_stream.R David Murray2013-03-191-0/+3
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | In Python2 Popen uses *FILE objects, which wind up buffering even though subprocess defaults to no buffering. In Python3, subprocess streams really are unbuffered by default, but the imaplib code assumes read is buffered. This patch uses the default buffer size from the io module to get buffered streams from Popen. Much debugging work and patch by Diane Trout. The imap protocol is too complicated to write a test for this simple change with our current level of test infrastructure.
| * Merge: #17443: Fix buffering in IMAP4_stream.R David Murray2013-03-191-0/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python2 Popen uses *FILE objects, which wind up buffering even though subprocess defaults to no buffering. In Python3, subprocess streams really are unbuffered by default, but the imaplib code assumes read is buffered. This patch uses the default buffer size from the io module to get buffered streams from Popen. Much debugging work and patch by Diane Trout. The imap protocol is too complicated to write a test for this simple change with our current level of test infrastructure.
| | * #17443: Fix buffering in IMAP4_stream.R David Murray2013-03-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python2 Popen uses *FILE objects, which wind up buffering even though subprocess defaults to no buffering. In Python3, subprocess streams really are unbuffered by default, but the imaplib code assumes read is buffered. This patch uses the default buffer size from the io module to get buffered streams from Popen. Much debugging work and patch by Diane Trout. The imap protocol is too complicated to write a test for this simple change with our current level of test infrastructure.
* | | Merge: #13700: Make imap.authenticate with authobject work.R David Murray2013-02-191-8/+12
|\ \ \ | |/ / | | | | | | | | | | | | | | | This fixes a bytes/string confusion in the API which prevented custom authobjects from working at all. Original patch by Erno Tukia.
| * | Merge: #13700: Make imap.authenticate with authobject work.R David Murray2013-02-191-8/+12
| |\ \ | | |/ | | | | | | | | | | | | | | | This fixes a bytes/string confusion in the API which prevented custom authobjects from working at all. Original patch by Erno Tukia.
| | * #13700: Make imap.authenticate with authobject work.R David Murray2013-02-191-8/+12
| | | | | | | | | | | | | | | | | | | | | This fixes a bytes/string confusion in the API which prevented custom authobjects from working at all. Original patch by Erno Tukia.
* | | Issue #16717: get rid of socket.error, replace with OSErrorAndrew Svetlov2012-12-181-4/+4
|/ /
* | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
* | Issues #11024: Fixes and additional tests for Time2Internaldate.Alexander Belopolsky2012-06-231-19/+26
| |
* | Issue #10941: Fix imaplib.Internaldate2tuple to produce correct result nearAlexander Belopolsky2012-04-291-13/+3
|\ \ | |/ | | | | the DST transition. Patch by Joe Peterson.
| * Issue #10941: Fix imaplib.Internaldate2tuple to produce correct result nearAlexander Belopolsky2012-04-291-13/+3
| | | | | | | | the DST transition. Patch by Joe Peterson.
* | Merge 3.2, fix typos.Florent Xicluna2011-11-111-1/+1
|\ \ | |/
| * Fix few typos.Florent Xicluna2011-11-111-1/+1
| |
* | Issue #1441530: In imaplib, read the data in one chunk to speed up largeCharles-François Natali2011-05-241-9/+1
| | | | | | | | reads and simplify code.
* | Issue #8808: The IMAP4_SSL constructor now allows passing an SSLContextAntoine Pitrou2011-05-061-4/+19
|/ | | | | parameter to control parameters of the secure channel. Patch by Sijin Joseph.
* Issue #10939: Fixed imaplib.Internaldate2tuple(). Thanks Joe PetersonAlexander Belopolsky2011-01-291-3/+3
| | | | for the report and the patch. Reviewed by Georg Brandl.
* Issue #10934: Fixed and expanded Internaldate2tuple() andAlexander Belopolsky2011-01-191-4/+10
| | | | | Time2Internaldate() documentation. Thanks Joe Peterson for the report and the original patch.
* imaplib: IMAP4 constructor closes the socket on errorVictor Stinner2011-01-051-0/+11
| | | | | Fix a ResourceWarning(unclosed socket) if an exception is raised in the constructor after the creation of the socket. Patch written by Nadeem Vawda.
* Issue #10429: IMAP.starttls() stored the capabilities as bytes objects,Antoine Pitrou2010-11-161-11/+11
| | | | rather than strings.
* Issue #4471: Add the IMAP.starttls() method to enable encryption onAntoine Pitrou2010-11-121-5/+36
| | | | standard IMAP4 connections. Original patch by Lorenzo M. Catucci.
* Followup to r86383: it seems that in some cases (buildbots), the serverAntoine Pitrou2010-11-101-3/+9
| | | | closes the connection before we can call shutdown().
* Forward port r86386 after it fixed the 3.1 buildbot issuesAntoine Pitrou2010-11-101-3/+6
|
* Issue #4471: Properly shutdown socket in IMAP.shutdown(). Patch byAntoine Pitrou2010-11-091-0/+1
| | | | Lorenzo M. Catucci.
* Fix IMAP.login() to work properly.Antoine Pitrou2010-11-091-3/+3
| | | | Also, add remote tests for imaplib (part of #4471).
* Fix Issue9638 - remove dead code from py3k imaplibSenthil Kumaran2010-08-191-15/+0
|
* #5146: handle UID THREAD command correctly.Georg Brandl2010-07-311-1/+1
|
* Merged revisions 77041 via svnmerge fromMark Dickinson2009-12-241-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77041 | mark.dickinson | 2009-12-24 16:06:58 +0000 (Thu, 24 Dec 2009) | 1 line Issue #7568: typo in docstring. Thanks Mike Putnam. ........
* Merged revisions 76726-76727 via svnmerge fromR. David Murray2009-12-101-0/+2
| | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk The merge adds a test with an invalid rather than a missing line end, since the py3K code passed the original issue 5949 test. New test also by Scott Dial. ........ r76726 | r.david.murray | 2009-12-09 10:15:31 -0500 (Wed, 09 Dec 2009) | 6 lines Issue 5949: fixed IMAP4_SSL hang when the IMAP server response is missing proper end-of-line termination. Patch and tests by Scott Dial. The new tests include a test harness which will make it easier to add additional tests. ........ r76727 | r.david.murray | 2009-12-09 11:41:39 -0500 (Wed, 09 Dec 2009) | 2 lines Skip new imaplib SSL tests if ssl is not available. ........
* Merged revisions 72662 via svnmerge fromAntoine Pitrou2009-05-151-3/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72662 | antoine.pitrou | 2009-05-15 13:50:29 +0200 (ven., 15 mai 2009) | 3 lines Issue #1655: Make imaplib IPv6-capable. Patch by Derek Morr. ........
* Issue #1210: Fixed imaplibChristian Heimes2008-11-051-110/+77
| | | | Patch by Victor Stinner, reviewed by Barry Warsaw.
* #2834: Change re module semantics, so that str and bytes mixing is forbidden,Antoine Pitrou2008-08-191-4/+5
| | | | | and str (unicode) patterns get full unicode matching by default. The re.ASCII flag is also introduced to ask for ASCII matching instead.
* Merged revisions 61003-61033 via svnmerge fromChristian Heimes2008-02-241-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r61004 | georg.brandl | 2008-02-23 19:47:04 +0100 (Sat, 23 Feb 2008) | 2 lines Documentation coverage builder, part 1. ........ r61006 | andrew.kuchling | 2008-02-23 20:02:33 +0100 (Sat, 23 Feb 2008) | 1 line #1389051: IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh. ........ r61008 | andrew.kuchling | 2008-02-23 20:28:58 +0100 (Sat, 23 Feb 2008) | 1 line #1389051, #1092502: fix excessively large allocations when using read() on a socket ........ r61011 | jeffrey.yasskin | 2008-02-23 20:40:54 +0100 (Sat, 23 Feb 2008) | 13 lines Prevent classes like: class RunSelfFunction(object): def __init__(self): self.thread = threading.Thread(target=self._run) self.thread.start() def _run(self): pass from creating a permanent cycle between the object and the thread by having the Thread delete its references to the object when it completes. As an example of the effect of this bug, paramiko.Transport inherits from Thread to avoid it. ........ r61013 | jeffrey.yasskin | 2008-02-23 21:40:35 +0100 (Sat, 23 Feb 2008) | 3 lines Followup to r61011: Also avoid the reference cycle when the Thread's target raises an exception. ........ r61017 | georg.brandl | 2008-02-23 22:59:11 +0100 (Sat, 23 Feb 2008) | 2 lines #2101: fix removeAttribute docs. ........ r61018 | georg.brandl | 2008-02-23 23:05:38 +0100 (Sat, 23 Feb 2008) | 2 lines Add examples to modulefinder docs. Written for GHOP by Josip Dzolonga. ........ r61019 | georg.brandl | 2008-02-23 23:09:24 +0100 (Sat, 23 Feb 2008) | 2 lines Use os.closerange() in popen2. ........ r61020 | georg.brandl | 2008-02-23 23:14:02 +0100 (Sat, 23 Feb 2008) | 2 lines Use os.closerange(). ........ r61021 | georg.brandl | 2008-02-23 23:35:33 +0100 (Sat, 23 Feb 2008) | 3 lines In test_heapq and test_bisect, test both the Python and the C implementation. Originally written for GHOP by Josip Dzolonga, heavily patched by me. ........ r61024 | facundo.batista | 2008-02-23 23:54:12 +0100 (Sat, 23 Feb 2008) | 3 lines Added simple test case. Thanks Benjamin Peterson. ........ r61025 | georg.brandl | 2008-02-23 23:55:18 +0100 (Sat, 23 Feb 2008) | 2 lines #1825: correctly document msilib.add_data. ........ r61027 | georg.brandl | 2008-02-24 00:02:23 +0100 (Sun, 24 Feb 2008) | 2 lines #1826: allow dotted attribute paths in operator.attrgetter. ........ r61028 | georg.brandl | 2008-02-24 00:04:35 +0100 (Sun, 24 Feb 2008) | 2 lines #1506171: added operator.methodcaller(). ........ r61029 | georg.brandl | 2008-02-24 00:25:26 +0100 (Sun, 24 Feb 2008) | 2 lines Document import ./. threading issues. #1720705. ........ r61032 | georg.brandl | 2008-02-24 00:43:01 +0100 (Sun, 24 Feb 2008) | 2 lines Specify what kind of warning -3 emits. ........ r61033 | christian.heimes | 2008-02-24 00:59:45 +0100 (Sun, 24 Feb 2008) | 1 line MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short. ........
* fix bug 1482: IMAP4 SSL isn't workingBill Janssen2008-02-011-50/+5
|