summaryrefslogtreecommitdiffstats
path: root/Lib/mailbox.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-7/+13
|\ | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
| * Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-4/+8
| | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* | PEP 479: Use the return-keyword instead of raising StopIteration inside a ↵Raymond Hettinger2014-11-231-1/+1
| | | | | | | | generators.
* | Issue #22823: Use set literals instead of creating a set from a listRaymond Hettinger2014-11-091-2/+2
|/
* Issue #22369: Change "context manager protocol" to "context management ↵Serhiy Storchaka2014-09-101-1/+1
| | | | protocol".
* Issue #20729: Restored the use of lazy iterkeys()/itervalues()/iteritems()Serhiy Storchaka2014-08-131-7/+7
| | | | in the mailbox module. This is partial rollback of changeset f340cb045bf9.
* Issue #20976: pyflakes: Remove unused importsVictor Stinner2014-03-201-1/+0
|
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-2/+0
|\ | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
| * Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-2/+0
| | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* | Merge #19037: adjust file times *before* moving maildir files into place.R David Murray2013-09-181-5/+13
|\ \ | |/
| * #19037: adjust file times *before* moving maildir files into place.R David Murray2013-09-181-5/+13
| | | | | | | | | | This avoids race conditions when other programs are monitoring the maildir directory. Patch by janzert.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | | | | | ModuleNotFoundError.
* | modernize some modules' code by replacing ↵Giampaolo Rodola'2013-02-121-27/+14
| | | | | | | | OSError->ENOENT/ENOTDIR/EPERM/EEXIST occurrences with the corresponding pep-3151 exceptions (FileNotFoundError, NotADirectoryError, etc.)
* | modernize some modules' code by using with statement around open()Giampaolo Rodola'2013-02-121-14/+4
| |
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-8/+8
| |
* | #16135: Removal of OS/2 support (Python code partial cleanup)Jesus Cea2012-10-051-4/+2
| |
* | #16135: Removal of OS/2 support (Remove OS2 and OS/2 references)Jesus Cea2012-10-051-3/+0
| |
* | utilize yield fromPhilip Jenvey2012-10-011-2/+1
|/
* #15222: Merge 3.2Petri Lehtinen2012-09-251-6/+38
|\
| * #15222: Insert blank line after each message in mbox mailboxesPetri Lehtinen2012-09-251-6/+38
| |
* | #11062: Fix universal newline support in Babyl._install_message()Petri Lehtinen2012-08-161-3/+10
|\ \ | |/
| * #11062: Fix universal newline support in Babyl._install_message()Petri Lehtinen2012-08-161-3/+10
| | | | | | | | | | When adding a message from a binary file, \r\n was translated to \r\r\n in the message body.
* | #11062: Fix adding a message from file to Babyl mailboxPetri Lehtinen2012-08-151-1/+1
|\ \ | |/
| * #11062: Fix adding a message from file to Babyl mailboxPetri Lehtinen2012-08-151-1/+1
| |
* | #5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()Petri Lehtinen2012-06-291-0/+3
|\ \ | |/
| * #5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()Petri Lehtinen2012-06-291-0/+3
| |
* | #9559: Don't call _pre_mailbox_hook more than oncePetri Lehtinen2012-06-291-2/+5
|\ \ | |/
| * #9559: Don't call _pre_mailbox_hook more than oncePetri Lehtinen2012-06-291-2/+5
| |
* | #9559: Append data to single-file mailbox files if messages are only addedPetri Lehtinen2012-06-281-3/+15
|\ \ | |/ | | | | | | | | If messages were only added, a new file is no longer created and renamed over the old file when flush() is called on an mbox, MMDF or Babyl mailbox.
| * #9559: Append data to single-file mailbox files if messages are only addedPetri Lehtinen2012-06-281-3/+15
| | | | | | | | | | | | If messages were only added, a new file is no longer created and renamed over the old file when flush() is called on an mbox, MMDF or Babyl mailbox.
* | #15036: Make a repeated changes and flushes work with single-file mailboxesPetri Lehtinen2012-06-151-0/+1
|\ \ | |/
| * #15036: Make a repeated changes and flushes work with single-file mailboxesPetri Lehtinen2012-06-151-0/+1
| |
* | #12537: in mailbox avoid depending on knowledge of email package internalsR David Murray2012-04-091-3/+12
| | | | | | | | | | | | | | | | | | | | | | Previously mailbox was copying a list of attributes from one message object to another in order to "copy the message data". This means that any time new attributes were added to email.message.Message, mailbox broke. Now instead it copies all attributes from the source object to the target object, skipping any mailbox-object-specific attributes to produce the same clean initial state it was previously getting by copying only the "known" attributes. David Lam assisted in the development of this patch.
* | Fix Maildir initialization so that maildir contents are read correctly.Petri Lehtinen2011-11-051-5/+3
|\ \ | |/ | | | | Closes #13254.
| * Fix Maildir initialization so that maildir contents are read correctly.Petri Lehtinen2011-11-051-5/+3
| | | | | | | | Closes #13254.
* | Close #12454: The mailbox module is now using ASCII, instead of the localeVictor Stinner2011-10-171-5/+2
|/ | | | encoding, to read and write MH mailboxes (.mh_sequences files).
* #11700: proxy object close methods can now be called multiple timesR David Murray2011-06-181-4/+10
| | | | This makes them work like the close provided by regular file objects.
* #11767: use context manager to close file in __getitem__ to prevent FD leakR David Murray2011-06-171-1/+3
| | | | | | | | All of the other methods in mailbox that create message objects take care to close the file descriptors they use, so it seems to make sense to have __getitem__ do so as well. Patch by Filip Gruszczyński.
* #11999: sync based on comparing mtimes, not mtime to system clockR David Murray2011-05-071-37/+39
|\
| * #11999: sync based on comparing mtimes, not mtime to system clockR David Murray2011-05-071-36/+40
| |
| * Merged revisions 83385-83389,83391 via svnmerge fromGeorg Brandl2010-08-011-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r83385 | georg.brandl | 2010-08-01 08:42:45 +0200 (So, 01 Aug 2010) | 1 line #8773: mailbox.py does not need to be executable. ........ r83386 | georg.brandl | 2010-08-01 08:44:46 +0200 (So, 01 Aug 2010) | 1 line #8768: name test method properly so that it gets executed. ........ r83387 | georg.brandl | 2010-08-01 08:53:28 +0200 (So, 01 Aug 2010) | 1 line #8735: better explain semantics of *values* argument for parse(). ........ r83388 | georg.brandl | 2010-08-01 09:48:43 +0200 (So, 01 Aug 2010) | 1 line #7395: fix traceback in do_add() when no stats are loaded. Apply same fix for do_sort() and do_reverse(). ........ r83389 | georg.brandl | 2010-08-01 09:57:47 +0200 (So, 01 Aug 2010) | 1 line Small improvements to pstats browser: do not crash on reading invalid file, and actually do a reload when executing "read" as intended. ........ r83391 | georg.brandl | 2010-08-01 10:10:08 +0200 (So, 01 Aug 2010) | 1 line Add another news entry. ........
| * Merged revisions 76055 via svnmerge fromAntoine Pitrou2009-11-021-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r76055 | antoine.pitrou | 2009-11-02 12:36:51 +0100 (lun., 02 nov. 2009) | 13 lines Merged revisions 76034,76054 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76034 | antoine.pitrou | 2009-11-01 22:29:33 +0100 (dim., 01 nov. 2009) | 3 lines This should finally fix #6896. Let's watch the buildbots. ........ r76054 | antoine.pitrou | 2009-11-02 12:34:27 +0100 (lun., 02 nov. 2009) | 3 lines Since r76034 was successful, add a NEWS entry for it. ........ ................
* | Merged revisions 88730 via svnmerge fromR. David Murray2011-03-031-3/+3
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88730 | r.david.murray | 2011-03-03 13:03:36 -0500 (Thu, 03 Mar 2011) | 2 lines #11306: Treat EROFS like EACCES when making a 'file is read-only' decision ........
* | Fix #11116 fix on Windows (close file before removing in MH code)R. David Murray2011-02-121-1/+8
| |
* | #11116: roll back on error during add so mailbox isn't left corrupted.R. David Murray2011-02-111-6/+18
| |
* | #9124: mailbox now accepts binary input and uses binary internallyR. David Murray2011-01-301-119/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although this patch contains API changes and is rather weighty for an RC phase, the mailbox module was essentially unusable without the patch since it would produce UnicodeErrors when handling non-ascii input at arbitrary and somewhat mysterious places, and any non-trivial amount of email processing will encounter messages with non-ascii bytes. The release manager approved the patch application. The changes allow binary input, and reject non-ASCII string input early with a useful message instead of failing mysteriously later. Binary is used internally for reading and writing the mailbox files. StringIO and Text file input are deprecated. Initial patch by Victor Stinner, validated and expanded by R. David Murray.
* | Fix test_mailbox by supporting context manager protocol for get_file() returns.Georg Brandl2010-10-301-0/+14
| |
* | #8773: mailbox.py does not need to be executable.Georg Brandl2010-08-011-0/+0
| |