Just to clarify. It sounds like you have XML files attached to your emails, but they are not showing up in the posts?
Worse – the messages are getting bounced for having an illegal attachment. I tried adding text to the mime types, but it’s already a default as would I assume application/text to be. I looked for extension that would allow file types but didn’t find one.
Can you add the XML files directly to the media library?