summaryrefslogtreecommitdiffstats
path: root/Lib/imaplib.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in comments, docs and test names (#15018)Min ho Kim2019-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Fix typos in comments, docs and test names * Update test_pyparse.py account for change in string length * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: Dealloccte -> Deallocate Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Update posixmodule checksum. * Reverse idlelib changes.
* bpo-37390: Add audit event table to documentations (GH-14406)Steve Dower2019-06-271-2/+2
| | | Also updates some (unreleased) event names to be consistent with the others.
* bpo-37363: Add audit events for a range of modules (GH-14301)Steve Dower2019-06-241-0/+2
|
* bpo-36348: IMAP4.logout() doesn't ignore exc (GH-12411)Victor Stinner2019-04-151-9/+16
| | | | | | | | | | | | The imap.IMAP4.logout() method no longer ignores silently arbitrary exceptions. Changes: * The IMAP4.logout() method now expects a "BYE" untagged response, rather than relying on _check_bye() which raises a self.abort() exception. * IMAP4.__exit__() now does nothing if the client already logged out. * Add more debug info if test_logout() tests fail.
* bpo-35128: Fix spacing issues in warning.warn() messages. (GH-10268)Pablo Aguiar2018-11-011-1/+1
|
* bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634)Berker Peksag2018-08-071-1/+5
|
* bpo-33336, imaplib: Legalize MOVE command (GH-6569)Matěj Cepl2018-07-231-0/+1
| | | | | imaplib now allows MOVE command in IMAP4.uid() (RFC 6851: IMAP MOVE Extension) and potentially as a name of supported method of IMAP4 object.
* bpo-32157: Removed explicit quotes around %r and {!r}. (#4582)Serhiy Storchaka2017-11-281-1/+1
|
* bpo-30329: Catch Windows error 10022 on shutdown() (#1538)Victor Stinner2017-05-151-3/+6
| | | | | | Catch the Windows socket WSAEINVAL error (code 10022) in imaplib and poplib on shutdown(SHUT_RDWR): An invalid operation was attempted This error occurs sometimes on SSL connections.
* Merge: #25591: improve imap tests.R David Murray2016-12-251-1/+1
|\
| * #25591: improve imap tests.R David Murray2016-12-251-1/+1
| | | | | | | | Patch by Maciej Szulik.
* | Issue #28022: Deprecate ssl-related arguments in favor of SSLContext.Christian Heimes2016-09-101-1/+4
| | | | | | | | | | | | | | The deprecation include manual creation of SSLSocket and certfile/keyfile (or similar) in ftplib, httplib, imaplib, smtplib, poplib and urllib. ssl.wrap_socket() is not marked as deprecated yet.
* | #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-2/+2
| | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* | #21815: violate IMAP RFC to be compatible with, e.g., gmailR David Murray2016-01-021-1/+9
|/ | | | | | | | | | | and others, including imaplib's own behavior. I'm applying this only to 3.6 because there's a potential backward compatibility concern: if there are servers that include ] characters in the 'text' portion of their imap responses, this code change could introduce a new bug. Patch by Lita Cho, reviewed by Jessica McKellar, Berker Peksag, Maciej Szulik, silentghost, and me (I fleshed out the comments with the additional info/concerns.)
* 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.