Red Hat Bugzilla – Bug 303061
mailman reformats headers in multipart/signed, breaking the signature
Last modified: 2007-11-30 17:12:16 EST
Description of problem:
Version-Release number of selected component (if applicable):
2.1.5, 2.1.9, whatever.
/usr/sbin/sendmail mailman@localhost <test.eml
Then check whether the signature is correct -- it's busted in the email mailman
delivers to the list or, if it bounces it to the list admin, it's busted even in
There's a patch in Debian that disables the header folding for all headers
except the top headers (in particular, it does not fold any headers inside
multipart subparts). I'm not sure whether this is completely correct, since we
may want to fold headers generated by mailman itself -- and these may occur in
Other solution may be not to fold headers in multipart/signed (and possibly some
other) payloads. This is something that I hopefully achieved in this patch.
It touches a code that doesn't really belong to Mailman and I'm not sure whether
it covers all (or no more than desirable) cases.
And the best solution would probably be to track the headers we changed/added
and fold only those. This is msivak's idea and he seemed to feel like
implementing it, Cc'ing him then.
(This bug should probably be filled against Python and there probably is a
number of upstream bugs about it, but Debian has a workaround in the mailman
package anyway, so ...)
Commited and build in devel branch with patch . If someone had a better one
feel free to reopen.