Paul F. wrote:
i've recently started getting messages with multiple MIME-Version
headers. they all say "1.0", of course.
i see nothing (just a quick read) in RFC 2045 regarding multiple
MIME-Version headers.
The BNF shows exactly one, so I'd say the messages don't conform.
Are they from more than one source?
A quick web search shows that exmh could do that under some condition,
but that was over 15 years ago.
the following patch accomplishes this: all MIME-Version headers are
checked, and all those that are acceptable ("1.0") are ignored
silently.
Looks good to me.
the patch makes it possible for other programs (mhfixmsg? a future
"mhverifymsg"?) to easily request the multiple header warning in the
future.
Thanks for doing it that way. I could see an mhfixmsg enhancement
to zap all but the first (after verifying the version numbers), but
it's not high on my priority list.
David
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers