Scrubber broken on bad base64 messages

Bug #265870 reported by Scoggins
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

This is a stupid virus email that got thru to one of
our lists. I'm happy to remove it from the archive, but
I'm guessing if this was sent to a list again, it would
cause the same error in the delivery and not just in
the archiver.

Pickling archive state into
/usr/local/mailman/archives/private/sage-au/pipermail.pck
Traceback (most recent call last):
  File "/usr/local/mailman/bin/arch", line 187, in ?
    main()
  File "/usr/local/mailman/bin/arch", line 175, in main
    archiver.processUnixMailbox(fp, start, end)
  File
"/usr/local/mailman/Mailman/Archiver/pipermail.py",
line 544, in processUnixMailbox
    m = mbox.next()
  File "/usr/local/lib/python2.2/mailbox.py", line 34,
in next
    return self.factory(_Subfile(self.fp, start, stop))
  File "/usr/local/mailman/Mailman/Mailbox.py", line
79, in scrubber
    return mailbox.scrub(msg)
  File "/usr/local/mailman/Mailman/Mailbox.py", line
99, in scrub
    return self._scrubber(self._mlist, msg)
  File
"/usr/local/mailman/Mailman/Handlers/Scrubber.py", line
252, in process
    payload = part.get_payload(decode=1)
  File "/usr/local/mailman/pythonlib/email/Message.py",
line 189, in get_payload
    return Utils._bdecode(payload)
  File "/usr/local/mailman/pythonlib/email/Utils.py",
line 75, in _bdecode
    value = base64.decodestring(s)
  File "/usr/local/lib/python2.2/base64.py", line 44,
in decodestring
    return binascii.a2b_base64(s)
binascii.Error: Incorrect padding

[http://sourceforge.net/tracker/index.php?func=detail&aid=691039&group_id=103&atid=100103]

Tags: pipermail
Revision history for this message
Scoggins (scoggins) wrote : Offending message

Other attachments

Revision history for this message
Scoggins (scoggins) wrote :
Revision history for this message
Barry Warsaw (barry) wrote :

I've fixed this in the email package.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.