summaryrefslogtreecommitdiffstats
path: root/Lib/mailbox.py
Commit message (Collapse)AuthorAgeFilesLines
* Two changes:Barry Warsaw2001-01-311-12/+43
| | | | | | | | | | | | - All constructors grow an optional argument `factory' which is a callable used when new message instances are created by the next() methods. Defaults to the rfc822.Message class. - A new subclass of UnixMailbox is added, called PortableUnixMailbox. It's identical to UnixMailbox, but uses a more portable test for From_ delimiter lines. With PortableUnixMailbox, any line that starts with "From " is considered a delimiter (this should really check for two newlines before the F, but it doesn't.
* a few more modules get __all__Skip Montanaro2001-01-241-0/+2
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Maildir.__init__(): Make sure self.boxes is set.Fred Drake2000-10-231-3/+3
| | | | This closes SourceForge bug #117490.
* Add missing "s" from format string.Fred Drake2000-09-301-1/+1
| | | | This closes SourceForge patch #101714.
* Maildir.__init__(): Use the correct filter for filenames, so that thisFred Drake2000-09-221-7/+4
| | | | class conforms to the maildir specification.
* Detlef Lannert <lannert@uni-duesseldorf.de>:Fred Drake2000-09-141-2/+2
| | | | | | | | | | | | | mailbox.py (from the CVS tree) doesn't work with qmail Maildirs: Filenames are completed when the directories are scanned, and the directory name is prepended again in the next() method. Another suggestion: Change the print statement in the _test() driver to show two more date characters (probably the length has increased due to the recent Y2K hype ;). Now it shows the complete date, including the seconds -- at least for me. (I've also made the sender field left justified, in case it is ever shorter than the field width).
* Use built in function filter instead of doing it laboriously by hand.Sjoerd Mullender2000-08-111-5/+4
|
* Improve MHMailbox: messages are now sorted in numerical order.Guido van Rossum2000-08-101-3/+8
| | | | Also don't allow leading zeros in message numbers.
* Make tabnanny happy.Fred Drake2000-07-091-243/+242
| | | | mailbox.py: Convert to 4-space indents.
* Since Thomas Wouters kept complaining that he wants access to the theGuido van Rossum2000-04-041-0/+3
| | | | | | | | Unix From lines, change the UnixMailbox class so that _search_start() positions the file *before* the Unix From line instead of after it; change _search_end() to skip one line before looking for the next From line. The rfc822.Message class automatically recognizes these Unix From lines and squirrels them away in the 'unixfrom' instance variable.
* Untabify to pass the -tt test.Fred Drake2000-02-101-240/+240
|
* Only set msg.fp to None when there are no extra arguments; if thereGuido van Rossum1999-12-141-1/+2
| | | | are, we must keep the file around so we can print the body.
* Add readlines() to _Subfile class. Not clear who would need it, butGuido van Rossum1999-03-241-0/+13
| | | | | Chris Lawrence sent me a broken version; this one is a tad simpler and more conforming to the standard.
* Patch by Mike Meyer:Guido van Rossum1998-12-231-4/+35
| | | | | Add a class to mailbox.py for dealing with qmail directory mailboxes. The test code was extended to notice these being used as well.
* Patch by Piet van Oostrum to avoid calculating with the result ofGuido van Rossum1998-07-201-6/+5
| | | | | | | fp.tell() -- that won't work on Windows. (A patch for rfc822 is still needed for one case where it finds a bad header line and wants to back up.)
* The _fromlinepattern was a little too restrictive -- some sendmailsGuido van Rossum1998-07-021-1/+1
| | | | don't put the seconds in the time!
* In class _Subfile, make sure read(n) can't read beyond EOF. AlsoGuido van Rossum1998-06-171-2/+5
| | | | | allow negative numbers to specify read until EOF (like for a regular file's read() method).
* UnixMailbox: don't be fooled by lines that begin with "From " butGuido van Rossum1998-04-031-6/+22
| | | | | otherwise don't look like headers at all... Also robustify the test code a bit.
* A few lines were indented using spaces instead of tabs -- fix them.Guido van Rossum1998-03-261-37/+43
|
* Convert all remaining *simple* cases of regex usage to re usage.Guido van Rossum1997-10-221-3/+4
|
* Added BabylMailbox class by Fred Lundh (untested).Guido van Rossum1997-05-151-0/+20
|
* Improve getting the mailbox from the environment.Guido van Rossum1997-05-081-5/+5
|
* /usr/local/bin/python -> /usr/bin/env pythonGuido van Rossum1996-11-271-1/+1
|
* Revamped test case and updated doc string.Guido van Rossum1996-09-171-23/+41
|
* support 'whence' arg to seek()Guido van Rossum1996-01-251-2/+7
|
* Added class MHMailboxJack Jansen1995-10-231-5/+35
| | | | Added optional third parameter to seek.
* Changes to use default argument values where possibleGuido van Rossum1994-05-061-8/+4
|
* Jack's module for parsing UNIX mailbox filesGuido van Rossum1994-04-281-0/+137