Apple’s Worldwide Developers Conference to kick off June 10 at 10 a.m. PDT with Keynote address

The Keynote will be available to stream on apple.com, the Apple Developer app, the Apple TV app, and the Apple YouTube channel. On-demand playback will be available after the conclusion of the stream.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Attachments missing from Mailbox Export - mbox file

I'm running the latest version of Mail which is Version 11.2 (3445.5.20) on the latest version of High Sierra Version 10.13.2 (17C205).


When I navigate to a mailbox (lets say Trash) which has a few messages in it and I go to


Mailbox>Export Mailbox....


it asks for the destination folder. Upon export it creates the mbox file but none of the messages have attachments still.


My assumption is that the act of creating an mbox file creates the messages along with all the attachments.


What am I doing wrong. Is their a bug in Apple Mail?

MacBook Pro (Retina, 13-inch, Late 2013), macOS High Sierra (10.13.2), null

Posted on Jan 19, 2018 1:02 PM

Reply
5 replies

Jan 23, 2018 11:55 AM in response to bodhi_1980

After reporting this to Apple Support this has been escalated to the Engineering team.


So it appears that this is a bug in the Version 11.2 (3445.5.20) as checking with others who have an older version of Apple Mail 10.2 the export does indeed work and does indeed include attachments with the emails into the exported .mbox file.


So with Version 11.2 no dice until the run a patch to fix this. 😟

Jan 23, 2018 7:45 PM in response to bodhi_1980

My export has attachments, but probably not the format you expect.

email is a text-only protocol. Attachments are encoded into text streams in order to send over the protocol.

The messages that are exported in Mail are exported as they were received, with the attachments encoded into the message.


Unfortunately, if you import the exported mbox, the attachments are not decoded and do not appear with the imported messages.


If you need to recover the attachments on exported mbox's, I imagine there are various programs you can use to decode the attachments back into files.

Jan 26, 2018 10:59 AM in response to Barney-15E

That's interesting.


What I was expecting was pdfs, excel, etc. Also .png files that are embeded in messages (for example lots of screenshots and what not). This email is from an really Gmail inbox that I stored locally as a backup (I left messages on the server). I don't use that email anymore but I still have the backup.

It takes up alot of space on my local machine and I wanted to reupload it back to a Gmail address.


I've been using this python script that works really well. The only problem is no attachments.


The Apple Support Engineers said that they Export Mailbox should have attachments so they are looking at disk images to see if this is indeed a bug.


FWIW the attachments export in previous versions of Apple Mail just fine. Also, its just odd to me that Google doesn't support uploads anymore, they do for outlook but not for Thunderbird or Apple Mail. I get that far less people use those email clients but it seems silly not to make it easier to use Google products.


When I go directly into the Apple Mail Library folder the attachments in all the format glory are still there .pdf, .png . xls and so on. So it's weird that an .mbox export would lose that info.

Jan 31, 2018 11:43 AM in response to Barney-15E

Yeah I understand. That the files were encoded was what I thought was the issue at first but it appears that its an Apple Mail design flaw.


The Support Engineers just got back to me after looking at a couple of my disk images. It turns out this is intentional for some reason (though not entirely sure about that).


It looks like this is an apple issue. Namely, when I create a fresh mailbox and try and transfer a message to that new apple mail mailbox Apple Mail alerts that the connected email account is offline. (recall this mail was downloaded to the local client as a back up and is no longer connected to the email account that it once was).


So it appears that because the email account isn't actually connected to a "live email". Apple Mail can't attach the attachments to the .mbox file upon export even though, the attachements live on the local machine in Apple Mails own mailbox file architecture as full files.


I'm checking with some colleagues who have older versions of Apple Mail to see if the email accounts they have are connected to an actual webmail or other email account.


If that is the missing link then its on apple mail to fix. If indeed, one has to have a connected live email account, then its by design that Apple Mail prohibits the creation of an .mbox file will full attachments and just creates the messages.


Which seems silly, so maybe I can get them to fix that. It shouldn't matter if an account is live or not, all the email files and attachments live on the local client. It appears that its just a matter of Apple Mail ensuring that regardless of being connected they can export to an .mbox fully with the attachments (encoded or otherwise). The whole thing is really strange. Email is such an old protocol and I am sure Apple wants to focus on numerous other software aspects than silly old Apple Mail though. 😝

Attachments missing from Mailbox Export - mbox file

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