Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Export Mail to mbox with Save As... Apps
Mail for Mac OS X 10.4 stores messages in individual elmx files instead of a single mbox file. This allows Spotlight to index individual messages, but makes it harder to move your mail to other mail clients like Thunderbird.

Two existing hints (A script to export Mail's mboxes for Thunderbird and 10.4: Export Mail messages to Thunderbird, revisited) seem to imply that you need a script or application to easily create an mbox file. However Mail (I'm using Version 2.1 on 10.4.7) does know how to create mbox files -- it just doesn't use the term Export.
  1. Select the messages you want in the mbox file. (Press Command-A to export the whole folder.)
  2. Go to the File menu and select Save As...
  3. Enter a filename for your mbox file. The default filename is the Subject of the first message, but this doesn't mean you'll be saving each message individually.
  4. Select where you want the file saved.
  5. Select Format: Raw Message Source
  6. Save.
The result is a file in mbox format, complete with MIME attachments, that you can import into other mail clients.

The only drawback is that Mail stores message status (Read, Unread) separate from the elmx files, and it won't create X-Status headers when exporting to mbox. This means that all messages appeared to be unread when I import them into Thunderbird.
    •    
  • Currently 2.91 / 5
  You rated: 2 / 5 (11 votes cast)
 
[143,594 views]  

10.4: Export Mail to mbox with Save As... | 11 comments | Create New Account
Click here to return to the '10.4: Export Mail to mbox with Save As...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Export Mail to mbox with Save As...
Authored by: Anonymous on Jul 10, '06 07:58:26AM

Great tip. Thanks. A lot of Opera users will be delighted they can actually import their stuff from Apple Mail.



[ Reply to This | # ]
Read, Unread Status
Authored by: timgaden on Jul 10, '06 03:48:05PM
You can preserve the read and unread flags on these emails by using Andreas Amann's Archive Script, part of his first rate Mail Scripts collection:

http://homepage.mac.com/aamann/Mail_Scripts.html

[ Reply to This | # ]
Ironic
Authored by: ret on Jul 11, '06 10:41:43PM

One of Mark Pilgrim's biggest gripes in his recent (and somewhat noisy) switch to Ubuntu was the fact that Mail stopped using mbox format. Seems a method for converting back was staring us all in the face the whole time.

cheers
RET

---
perl -e \'require Signature.pm; srand; printf STDOUT \"%s\\n\", $Signature[rand @Signature];\'



[ Reply to This | # ]
10.4: Export Mail to mbox with Save As...
Authored by: stewartj on Jul 13, '06 07:24:14PM
Except it doesn't work as you say -- it's broken (it doesn't export standard mbox files).

http://diveintomark.org/archives/2006/07/13/mail-checks-in

[ Reply to This | # ]
10.4: Export Mail to mbox with Save As...
Authored by: mankoff on Aug 13, '07 01:51:39PM

Works for me now (I think)... Perhaps there has been a bug fix since this post.

---
http://spacebit.dyndns.org



[ Reply to This | # ]
10.4: Export Mail to mbox with Save As...
Authored by: Anonymous on Jul 14, '06 10:36:48AM
You can use Mailbox Converter:

http://vengefulcow.com/emlx2mbox/

[ Reply to This | # ]
10.4: Export Mail to mbox with Save As...
Authored by: apoc_metal on Jan 09, '07 08:54:15PM

could one write a script that wrote these headers into the message source as it exported them? Would it be worth the time and effort?

---
http://sidetracked.deviantart.com



[ Reply to This | # ]
10.4: Export Mail to mbox with Save As...
Authored by: apoc_metal on Jan 09, '07 09:00:05PM
Ah, nevermind... I saw the comment above :-D
http://homepage.mac.com/aamann/Mail_Scripts.html

---
http://sidetracked.deviantart.com

[ Reply to This | # ]

10.4: Export Mail to mbox with Save As...
Authored by: SPB on Jan 22, '08 08:40:19AM

Well I want to thank you for illuminating this for me, worked perfectly to a file and imports just fine into Evolution on my Ubuntu box.



[ Reply to This | # ]
10.4: Export Mail to mbox with Save As...
Authored by: VicDiesel on Feb 05, '08 08:33:13AM

And 2 years after this was posted it's still broken. From lines are not handled right.

Ok, it's not broken: it exports Raw Source, which is not the same as mbox format.

Victor.



[ Reply to This | # ]
10.4: Export Mail to mbox with Save As...
Authored by: staylor on Jan 10, '12 12:40:13PM

Great tip...I was able to export everything from OS X and get it to Linux. FYI, I also needed to go the other way--get email from my PC to my Mac with attachments (about 12,000 Outlook emails from my old job). I found a program called 8Convert (www.eighthoof.com) that converted all of my Outlook mail to mbox format. Thanks again....



[ Reply to This | # ]