summaryrefslogtreecommitdiff
path: root/Mailman/SecurityManager.py
diff options
context:
space:
mode:
authorbwarsaw2002-08-29 17:17:33 +0000
committerbwarsaw2002-08-29 17:17:33 +0000
commita554ebe6a034aa4b2f8d66d0f8c48eec427de347 (patch)
tree0143afbe131b19c6cc241db3c96f6ec0da90dab4 /Mailman/SecurityManager.py
parent96b2a458409f8445f4978b74b082eea87263d88d (diff)
downloadmailman-a554ebe6a034aa4b2f8d66d0f8c48eec427de347.tar.gz
mailman-a554ebe6a034aa4b2f8d66d0f8c48eec427de347.tar.zst
mailman-a554ebe6a034aa4b2f8d66d0f8c48eec427de347.zip
Some fixes for problems identified by Peer Heinlein. It is possible
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.
Diffstat (limited to 'Mailman/SecurityManager.py')
0 files changed, 0 insertions, 0 deletions