[Dovecot] [Fwd: Re: Bug in BODYSTRUCTURE]
Fyi...
Sam Varshavik (courier-imap developer) claims (on the courier-imap list, see attached) dovecot is incorrectly parsing messages with missing/invalid "MIME-Version:" header...
I have no clue if he is correct... if so, maybe this has already been fixed?
Charles Marcus, 2009-11-10 12:52:
Since when is being robust incorrect?
Well, that is a MUST for the sender part (that creates the message), but the RFC (or at least the part that Sam Varshavchik quoted) does not say "you are not allowed to handle a MIME message if some part of it is broken". You can does, if you like to be a pedantic bureaucrat, but I doubt that this improves the user experience.
It's actually the other way round: It's harder to write software that follows the robustness principle, "be liberal in what you accept from others". Sam's ranting would apply to violations of the other part, "be conservative in what you do".
I fully agree with Jakob. Actually this is a somewhat recent change
(v1.1.alpha2). Mime-Version: was previously required, but there were
enough broken mails that I decided to make this optional in code (but
not by admin):
/* Buggy software creates Content-Type: headers without Mime-
Version:
header. By default we allow this and assume message is
MIME if
Content-Type: is found. This flag disables this. */
MESSAGE_PARSER_FLAG_MIME_VERSION_STRICT = 0x02
On Nov 10, 2009, at 8:02 AM, Jakob Hirsch wrote:
participants (3)
-
Charles Marcus
-
Jakob Hirsch
-
Timo Sirainen