Receiving attachments as multipart/mixed or plain text

I've just set up a new laptop on Lion, and one problem I'm seeing is that any time anyone ever sends me an attachment (PDF, Excel file, iCal calendar), they come through as multipart/mixed or plain text. The senders are all on Macs using Snow Leopard. If they zip the files, they come through fine. It seems the MIME type is being set incorrectly somewhere, and it seems specific to this new machine. How can I fix this? I haven't seen this kind of problem for about a decade, and it's not clear to me where the problem lies.

Mac OS X (10.6.7), Since MacPlus, everything.

Posted on Oct 3, 2011 8:09 AM

Reply
25 replies

Oct 3, 2011 9:15 AM in response to Maxplanar

Maxplanar wrote:


Hmmm, that can hardly be true, as the exact same emails are being received just fine on my other Lion system?


The content of the message does not change. I'm really sorry that you can't grasp that. The *presentation* of the message by the receiving client is different.


If I write a letter in Spanish, place it into an envelope, and send it to two different people, is it a different letter because one of those people is a Spanish speaker, and the other is not? Is it the fault of the sender that one recipient can read it and the other cannot?


So. What email client? How is it configured? Is it the same email client on both machines? Are both machines downloading the same message from the same server?

Oct 3, 2011 9:22 AM in response to Marc Wilson

Marc Wilson wrote:


The content of the message does not change. I'm really sorry that you can't grasp that.

I can grasp it perfectly well, thank you.

Marc Wilson wrote:

So. What email client? How is it configured? Is it the same email client on both machines? Are both machines downloading the same message from the same server?

As I said, everyone is using Macs, both senders are on Snow Leopard. On my end, both Macs are running Lion, and Mail. Both my machines are downloading the same messages from the same server, same Mail config.

Oct 17, 2011 11:52 AM in response to etresoft

I've tried to get to the bottom of this on many fronts, but the fact is it's still 'broken', despite absorbing the above and trying all suggestions. On my older laptop running Lion, I can receive emails with PDF's, XML's, etc without a hitch. On the new laptop running Lion (both are running 10.7.2), those exact same emails (all mail is IMAP and resides on the server) appear in Mail as plain text or multipart/mixed. My ISP has disavowed responsibility, stating that the encoding type is determined by the sender, as have others have. But since one laptop has no such problems with the same emails, it really does appear to be a problem specific to the new laptop.


Any further ideas?


Again, just for clarity - my two laptops are running 10.7.2, using Mail as client. Senders are running Mail on Snow Leopard. Attachments work better if zipped, but even that is no guarantee.

Jan 23, 2012 11:10 AM in response to sandrift

I'm still having this problem, and now the user with whom I had the problem is working on a different machine - he's upgraded to a new MBP and Lion. So we're both on Lion, and I STILL receive many, but not all, of his email attachments as plain text. So frustrating, and so unpredictable. This happens whether he emails from his me.com account or his earthlink account.


Also, Rebuilding the mailbox did not solve the problem - I tried a few times, on a few mailboxes.

Jan 23, 2012 11:20 AM in response to Maxplanar

How do you know if they are multipart/mixed or plain text? My suggestion to rebuild the mailbox was based on the assumption that you are seeing internal, encoded content. The only way I've seen that happen is if you have rules that move a message and, for some reason, the rule triggers before the message gets fully downloaded. In this case, rebuilding the mailbox fixes the display. I have only seen it on my own development servers where I send myself e-mail message that never leave the machine. That is not a common configuration.


I'm confused about what you are really seeing. Plain text is incompatible with any attachment.

Jan 23, 2012 11:35 AM in response to etresoft

etresoft wrote:


How do you know if they are multipart/mixed or plain text?

That part's easy - the emails are just the usual wall of text, the headers are truncated and a lot of info is missing, and the messages say the attachments are multipart/mixed or text/plain.



etresoft wrote:


The only way I've seen that happen is if you have rules that move a message and, for some reason, the rule triggers before the message gets fully downloaded. In this case, rebuilding the mailbox fixes the display.


I think you could be onto something here - this sender is indeed part of a Rule, and the mails are always directed away to a specific mailbox. However, I've yet to see a Rebuild on that mailbox make a difference. I will try again, and again.... :-)



etresoft wrote:


I'm confused about what you are really seeing. Plain text is incompatible with any attachment.


I'm seeing headers like this:


-Apple-Mail=_7064008C-4F08-4ED1-836C-46AC2DC777B2

Content-Transfer-Encoding: quoted-printable

Content-Type: text/plain;

charset=us-ascii

Content-Disposition: attachment;

filename=blahblah.jpg.zip

Content-Type: application/zip;

name="blahblah.jpg.zip"

Content-Transfer-Encoding: base64


UEsDBBQACAAIAA+rMEAAAAAAAAAAAAAAAAAZABAAQVZJUy00LUNhbnRBZmZvcmQtYWRzLmpwZ1VY

DABDBhVPDgYVT/YBFADsvQk8VG/7P37GLlshKkJSyk7Zs5RsIWXfxRgTY2YwMxShVTulkC3Jlj2E

MqEUKiT7nlD2NYYMM/M/M9o+z/P5Ps/z+36/v9e/1/8/t+ucc93Xfd3XvV3nPufc7jeULsqg3A79

U16eAGBmBkgBAMAGcEIAgBHkIHwD4AmyzvO6gicGGs8EHvchLOty8AdM/I3f/J0HtSDbAGYaDwAZ

EKGffD5kz3cdBvCkSD0DYuBRClGi8fzg0XHZi1YOVX8KvEiA9Vr/cbx5FgAkN/64HvRAu8PEjp1E

T1BLAQIVAxQACAAIAA+rMEARrbqTVXQAANXsAAAkAAwAAAAAAAAAAECkgQ9VKABfX01BQ09TWC8u

X0FWSVMtNC1DYW50QWZmb3JkLWFkcy5qcGdVWAgAQwYVTw4GFU9QSwUGAAAAAAMAAwD0AAAAxsko

AAAA

.....

etc


-Apple-Mail=_7064008C-4F08-4ED1-836C-46AC2DC777B2--



So you can see that Mail does indeed see a zip file and that it's encoded base64, but Mail ends up processing it as plain text.


I think you're very much onto something though with the issue of the Rules. I'm going to take this sender out of the Rule for a few days and see what happens.

Jan 23, 2012 2:11 PM in response to Maxplanar

That really isn't "plain text", that is just all screwed up. Did you copy and paste that directly from the message? It actually has two content types. That is way wrong.


Would it be possible to send me a copy of one of these messages? Send it to info at etresoft dot com. Don't use forward, use "send again" and change the from and to addresses. Ideally, save the message as "raw source", zip that, and e-mail it. Something is fishy here.

Jan 23, 2012 3:15 PM in response to etresoft

etresoft wrote:


That really isn't "plain text", that is just all screwed up. Did you copy and paste that directly from the message? It actually has two content types. That is way wrong.


It is crazy, isn't it? Yes, this was actually copied and pasted directly from the one actual message in Mail. As you say, it's completely borked. And, I have other messages that don't have attachments that have their headers utterly screwed up, most of the information missing, etc - e.g. no X-Sender, no path, no IP addresses, no servers, no From, just a To.


I'm becoming convinced that the Rules are the problem here - I think I'm seeing the same problem you're describing - the mail is being re-routed out of the Inbox before it has completely downloaded, and in so doing is 'breaking' the message.


I'm afraid I can't send you the emails concerned, as they're all related to a project I'm NDA-d on. But I'm very grateful for your offer to help. For now, I've removed the sender from my Rule and I'm going to see how that goes - it will probably be weeks before I know if it's a proper cure or not.

Jan 23, 2012 4:53 PM in response to Maxplanar

There is another possibility. Some e-mail servers perform very heavy virus and phishing scanning on either incoming and/or outgoing messages. They take the messages apart, scan them, and then reassemble them. If you closely inspect the raw output, you may be able to find evidence of that. The easiest way to spot it is through boundaries. If there are any boundaries in the message that aren't "Apple-Mail", then that is what happened.


Yet another possibility could be the type of e-mail server on either the sender or receiver side. Servers are doing all kinds of fancy things with attachment these days. If there is an Exchange server or a gmail server on either end, all bets are off. Both companies have long demonstrated that they feel justified in rewriting the rules of the internet to suit their software. Apple just codes to the published standards and only somtimes is able to find out what is going on and modify their software to conform to the new, de facto standard.

Jan 23, 2012 5:00 PM in response to etresoft

etresoft wrote:


There is another possibility. Some e-mail servers perform very heavy virus and phishing scanning on either incoming and/or outgoing messages. They take the messages apart, scan them, and then reassemble them. If you closely inspect the raw output, you may be able to find evidence of that

...[snip]...

Yet another possibility could be the type of e-mail server on either the sender or receiver side.


Yes, this was my first thought actually. This problem suddenly began in the middle of this project when I moved my domain to a new ISP, and so for a long, long time, that was where I was attempting to lay the blame. But I couldn't be 100% convinced, as I also migrated to Lion at the same time. My new ISP insisted that they 'did nothing' to the email, and that the MIME type was entirely the responsibility of the sender. I remain unconvinced by their protests though, and your comment reinforces that thought. They are a pretty geeky host (Dreamhost), but I still have strong suspicions that the domain move, rather than the Lion move, was the real source of the problem. I had never once had this problem with my previous ISP.

Jan 23, 2012 5:28 PM in response to Maxplanar

I have good news and bad news. The good news is that I use Dreamhost and and I'm very happy with them. I have tried several others but Dreamhost has consistently been the best.


Now for the bad news. I have been with Dreamhost for a few years now. A while back I think they started using gmail by default for new accounts. I'm not sure about that but you might want to double-check. I am not using gmail on Dreamhost and I've never seen what you are describing.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Receiving attachments as multipart/mixed or plain text

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.