Menu

#678 Scrubber broken on bad base64 messages

2.1 (stable)
closed-fixed
nobody
Pipermail (108)
5
2003-03-10
2003-02-22
No

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

Discussion

  • Simon Coggins

    Simon Coggins - 2003-02-22

    Offending message

     
  • Simon Coggins

    Simon Coggins - 2003-02-22

    Logged In: YES
    user_id=92263

    I've added a patch
    (http://sourceforge.net/tracker/index.php?func=detail&aid=691055&group_id=103&atid=300103)

    That fixes this problem.

     
  • Barry Warsaw

    Barry Warsaw - 2003-03-10

    Logged In: YES
    user_id=12800

    I've fixed this in the email package.

     
  • Barry Warsaw

    Barry Warsaw - 2003-03-10
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB