Did it come from Exchange?
Sometimes Microsoft Exchange will send out garbage if it’s misconfigured to think it’s talking to… I’m not sure - another Exchange server? Something else within its own infrastructure?
You can look at the raw mail from the Discourse console with e.g.:
mid = 'message-id from the log'
puts IncomingEmail.find_by(message_id: mid).raw
This shows the raw email that Discourse received. For example, this message body I just pulled out of our incoming rejection list really is garbage:
This is a multi-part message in MIME format.
--=====003_Dragon855807841081_=====
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: base64
7bgir+m+vzzIDCLE0mDmZrfIXvvmXjY=
--=====003_Dragon855807841081_=====
Content-Type: text/html;
charset=utf-8
Content-Transfer-Encoding: base64
LP/0L4tqmfZizO0DCDDE10uOzMZqzSHDjq04SLPaBjibLVHz+V94m1M45NDN
55aM8SMIf9XY4EFjP9CCFz+ojfmJqmubaz+bjrzmubw+bjWTiGSuLg==
--=====003_Dragon855807841081_=====--
as the parts don’t decode to valid text.