Closed buster closed 9 years ago
From the section you linked:
Again, even though this limitation is put on messages, it is incumbent upon implementations that display messages to handle an arbitrarily large number of characters in a line (certainly at least up to the 998 character limit) for the sake of robustness.
The general rule I followed when writing the parsers was to be as flexiable as possible - a non-conformant (but still inteligable) message should still parsed. The opposite is true for the formatters, they must be to spec as much as possible.
Ok, good point. Thanks.
My simple test looks like this:
Shouldn't MimeMessage::parse() return some kind of Error, stating that the line was too long or did i misread the RFC? According to https://tools.ietf.org/html/rfc5322#section-2.1.1 every line MUST be smaller then 998". Clearly my mail_str is not RFC compliant, but when receiving mails i can't rely on the comformance of the mail to the RFC.