| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| | |
|
| |
|
|
| |
D. Christensen, not Paul Reilly.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
| |
Mailbox.__init__(): We can simply pass email.message_from_file() as
the factory.
|
| | |
|
| |
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
|
| |
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. ;)
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Also, use cStringIO directly instead of our own hack-around StringIO
module.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
2.0 patch.
|
| |
|
|
|
|
| |
(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().
|
| |
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
for this before indexing msg.body[0]
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
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?)
|
| |
|
|
| |
__version__ info.
|
| |
|