I work on a server that processes email, and as part of that, we do some MIME parsing/encoding. I've recently had an issue arise for a message that is valid otherwise, but contains a Latin-1 character in a MIME header. Someone entered an e-mail address to multiple recipients containing a Latin-1 character, so the SMTP envelope only contains the valid recipients, but the To line still contains the invalid address and improperly-encoded string.
It was my impression that this is illegal, and that MIME headers are required to be 7-bit. 8-bit values in MIME headers have to be encoded in the form
=?charset?encoding?encoded text?=
The header in question is something like this:
To: <changé[email protected]>, <[email protected]>
My question is: Is this valid MIME and I just don't know about it?