summaryrefslogtreecommitdiffstats
path: root/Lib/mailbox.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-117467: Add preserving of mailbox owner on flush (GH-117510)Tony Mountifield2024-04-041-3/+7
| | | Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* #gh-75705: Set unixfrom envelope in mailbox._mboxMMDF (GH-107117)Matthieu Caneill2024-02-061-2/+3
|
* gh-66515: Fix locking of an MH mailbox without ".mh_sequences" file (GH-113482)Serhiy Storchaka2024-01-101-2/+17
| | | | | Guarantee that it either open an existing ".mh_sequences" file or create a new ".mh_sequences" file, but do not replace existing ".mh_sequences" file.
* gh-66515: mailbox.MH now supports folders withou the ".mh_sequences" file ↵Serhiy Storchaka2023-12-261-3/+6
| | | | | | (GH-804) (for example Claws Mail IMAP-cache folders).
* bpo-21360: mailbox.Maildir now ignores files with a leading dot (GH-11833)Zackery Spytz2023-12-251-0/+2
| | | | | | The maildir format specification states that files with a leading dot should be ignored. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* gh-90890: New methods to access mailbox.Maildir message info and flags (#103905)Stephen Gildea2023-11-111-0/+50
| | | | | | | | | | | | | | | New methods to access mailbox.Maildir message info and flags: get_info, set_info, get_flags, set_flags, add_flag, remove_flag. These methods speed up accessing a message's info and/or flags and are useful when it is not necessary to access the message's contents, as when iterating over a Maildir to find messages with specific flags. --------- * Add more str type checking * modernize to f-strings instead of % Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-45975: Simplify some while-loops with walrus operator (GH-29347)Nick Drozd2022-11-261-4/+1
|
* bpo-39481: PEP 585 for dataclasses, mailbox, contextvars (GH-19425)Ethan Smith2020-04-141-0/+5
|
* bpo-31522: mailbox.get_string: pass `from_` parameter to `get_bytes` (#9857)Cheryl Sabella2018-10-191-1/+1
| | | This allows *from_* to be successfully set to a non-default value when calling mbox.get_string.
* bpo-29762: More use "raise from None". (#569)Serhiy Storchaka2017-04-051-3/+3
| | | This hides unwanted implementation details from tracebacks.
* Issue #28764: Fix a test_mailbox failure on Android API 24 when run as a ↵Xavier de Gaye2016-12-121-9/+12
| | | | non-root user.
* Issue #27107: Add exception classes to mailbox.__all__, by Jacek KołodziejMartin Panter2016-06-061-3/+4
|
* 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).