summaryrefslogtreecommitdiff
path: root/Mailman/Mailbox.py
Commit message (Collapse)AuthorAgeFilesLines
* Bite the bullet: rename the Mailman package to mailman.Barry Warsaw2008-02-271-105/+0
|
* Tweak copyright years.Barry Warsaw2008-02-071-1/+1
|
* Other than contrib files, convert all imports of mm_cfg to imports of config.Barry Warsaw2007-07-141-4/+4
| | | | | | | | | | | Ignore mailman.egg-info In bin/make_instance.py: Catch and ignore import errors when importing Mailman.i18n. Before this script has actually been run, there won't be enough infrastructure in place of the import to succeed. Include several other fixes in this file. Add install_requires to the setup script.
* Update copyright years.bwarsaw2007-01-191-1/+1
|
* Now that Python 2.3 is the minimum requirement for Mailman 2.2:bwarsaw2006-04-151-10/+4
| | | | | | | | | | | - Remove True/False binding cruft - Remove __future__ statements for nested scopes - Remove ascii_letters import hack from Utils.py - Remove mimetypes.guess_all_extensions import hack from Scrubber.py - In Pending.py, set _missing to object() (better than using []) Also, update copyright years where appropriate, and re-order imports more to my PEP 8 tastes. Whitespace normalize.
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* Actually the last checkin was spurred by a bug report from Ericbwarsaw2003-04-171-1/+1
| | | | D. Christensen, not Paul Reilly.
* AppendMessage(): Fixes for mbox bugs reported by Paul Reilly, namelybwarsaw2003-04-171-7/+17
| | | | | | | | that there was no separating newline between the previous message and the next. I believe this got consumed when we updated the email package. No worries, we now explicitly add a separating newline. Also, update some coding to new style and non-deprecated api.
* Some fixes for problems identified by Peer Heinlein. It is possiblebwarsaw2002-08-291-3/+13
| | | | | | | | | | | | | | | | | | | | that the digest may contain unparseable messages, e.g. with missing start boundaries. Instead of crashing, such messages should simply be ignored. If lax parsing can't grok it, it has a high likelihood of being spam. Specific changes here: _safeparser(): New helper factory for PortableUnixMailbox, which returns the empty string if a MessageParseError occurs. Note that '' is used instead of None because the latter will stop the Mailbox's default iterator (in Python 2.2). Mailbox.__init__(): Use the _safeparser() function instead of email.message_from_file(). scrubber(): We can use _safeparser() here and simply not scrub the empty string return value.
* Need to import "email"bwarsaw2002-07-131-0/+1
|
* _factory(): Removed as obsolete.bwarsaw2002-07-121-10/+1
| | | | | Mailbox.__init__(): We can simply pass email.message_from_file() as the factory.
* Bump copyright years.bwarsaw2002-02-231-1/+1
|
* Use the mailbox module from the Python standard library, instead ofbwarsaw2002-02-231-1/+1
| | | | | | our Mailman/pythonlib version. We don't use the extra hack in our version anyway, AFAICT (i.e. the addition of a seek() method which just deferred to the underlying file object).
* _archfactory(): A factory for the ArchiverMailbox class, this isbwarsaw2001-10-241-2/+42
| | | | | | | | | necessary so that when the mailbox needs to create a message instance, it will use the factory, which gives the scrubber module a chance to get rid of nasty stuff like attachments, and to flatten multipart messages. This is twisted and convoluted but it works. ;)
* _factory(): A factory function for PortableUnixMailbox.__init__() sobwarsaw2001-10-151-0/+16
| | | | | | | that any new message objects it creates will be instances of our Message class instead of rfc822's. Mailbox.__init__(): Pass our _factory to base class constructor.
* Convert from mimelib to email.bwarsaw2001-10-011-2/+2
| | | | | Also, use cStringIO directly instead of our own hack-around StringIO module.
* Update copyright years.bwarsaw2001-03-291-1/+1
|
* Derive Mailbox from PortableUnixMailbox (from the Python 2.1 mailboxbwarsaw2001-02-151-25/+8
| | | | | | | | | module included in Mailman/pythonlib). We use this one because it has the most portable definition of the Unix-From separator. De-string-module-ify. Use new mimelib interface.
* AppendMessage(): Since we can't portably test the numeric/symbolicbwarsaw2000-09-271-2/+3
| | | | | error code raised by seek()ing before the end of a non-existant or zero length file, we simply ignore all IOErrors that can result.
* Mailbox._fromlinepattern: optimizations by Tim Peters.bwarsaw2000-09-241-1/+4
|
* Mailbox._isrealfromline(): Integrate optimization from proposed Pythonbwarsaw2000-09-241-0/+6
| | | | 2.0 patch.
* AppendMessage(): Patch to quote From_ lines in the body of a messagebwarsaw2000-09-201-2/+7
| | | | | | (unquoted lines will mess up the archiver). Inspired by Owen Taylor's SourceForge patch #101174, with a slight refinement to only quote From_ lines that match _isrealfromline().
* AppendMessage(): Do a better job of determining if the last characterbwarsaw2000-09-141-6/+15
| | | | | | in the file is a newline or not by doing a seek(-1, 2) and catching the IOError that can result if the file is empty. Closes SF bug #114099 Jitterbug PR#73.
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-211-1/+1
|
* AppendMessage(): the message's body could be the empty string. Checkbwarsaw1999-12-251-1/+1
| | | | for this before indexing msg.body[0]
* Removed RCS crudbwarsaw1998-06-191-2/+0
|
* Fixed a typo in the zipcode.viega1998-05-261-2/+2
|
* Added copyright notices to all source files where I am legally entitled to ↵viega1998-05-251-1/+18
| | | | | | | do so. Added a copy of the GNU GPL. Added information about mailman-users in README, and reworded some text in there (made the credits less verbose... perhaps they should move to a credits file?)
* Preparing to package a distribution - add a module docstring andmailman1998-04-091-0/+5
| | | | __version__ info.
* Initial revisionmailman1998-02-271-0/+16