Open Bug 163852 Opened 22 years ago Updated 2 years ago

S/MIME signed mails with spaces (asc#32) at end-of-line causes problem

Categories

(MailNews Core :: MIME, defect)

defect

Tracking

(Not tracked)

People

(Reporter: bugzilla, Unassigned)

References

Details

Mozilla Mail should erase spaces (asc#32) at the end of messages before singing them. There are SMTP-Servers and Listservers like LISTSERV that delete spaces at the end of a line which causes that the signature becomes invalid. This problem can be easily solved if Mozilla erases these non-neccessary spaces before signing and sending the message. Potentially relevevant RFCs: 2821 (SMTP-Servers should (only) tolerate spaces at line's end), 3156 (PGP-related, no spaces at the end allowed), 2045 (handling of MIME-messages)
QA Contact: gayatri → esther
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: MailNews → Core
Stripping spaces at end-of-line is wrong, because it breaks format=flowed. The correct solution for signed messages is to use a content transfer encoding that will avoid all transcoding by MTAs, such as changing line endings, removing trailing spaces, and changing 8-bit to 7-bit encoding. Base64 encoding of signed messages seems to be the only idiot-proof solution.
OS: Windows ME → All
QA Contact: esther → security
Hardware: PC → All
Assignee: ducarroz → nobody
QA Contact: security → mime
Product: Core → MailNews Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.