Cameron Simpson writes:
Regarding non-ASCII, we decode to bytes. Valid message-ids only contain ASCII anyway.
Actually message-ids can contain more than just ASCII, see RFC 6530 and friends. But never 2047. (And even 6530-cognisant senders do well to keep message-id to just ASCII.)
My suggestion is to drop any message-id that contains 2047 on the floor. Arnt