[ mailman-Bugs-691039 ] Scrubber broken on bad base64 messages

SourceForge.net noreply at sourceforge.net
Fri Feb 21 22:21:43 EST 2003


Bugs item #691039, was opened at 2003-02-22 15:57
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=691039&group_id=103

Category: Pipermail
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Simon Coggins (scoggins)
Assigned to: Nobody/Anonymous (nobody)
Summary: Scrubber broken on bad base64 messages

Initial Comment:
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


----------------------------------------------------------------------

>Comment By: Simon Coggins (scoggins)
Date: 2003-02-22 17:21

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=691039&group_id=103



More information about the Mailman-coders mailing list