Dude2009

Q: import  .mbox file (Office365) in apple mail

I am trying to import an archived .mbox file form Office 365 to apple mail. I do this by dropping the .mbox file on my desktop and the by importing it in apple mail. Then apple mail crashes consequently! What to do??

MacBook Pro, OS X El Capitan (10.11)

Posted on Oct 5, 2015 3:01 AM

Close

Q: import  .mbox file (Office365) in apple mail

  • All replies
  • Helpful answers

  • by sbillings,

    sbillings sbillings Oct 21, 2015 5:56 PM in response to Dude2009
    Level 1 (0 points)
    Oct 21, 2015 5:56 PM in response to Dude2009

    I have the exact same issue. This evening I upgraded to El Capitan ver.10.11.1 and it still crashes!!! Anyone else having this issue?? Apple are you listening???

  • by Eric Wieczorek,

    Eric Wieczorek Eric Wieczorek Nov 6, 2015 11:11 PM in response to sbillings
    Level 1 (54 points)
    iWork
    Nov 6, 2015 11:11 PM in response to sbillings

    I'm trying to do the same thing but Mail crashes when I try to import mbox file from Outlook.

     

    I tried booting is safe mode but this did not work as well.

     

    Mail creates a folder but it is empty when I re-start the program after the crash.

     

    Anyone have any suggestions?

     

    Eric W.

  • by sbillings,

    sbillings sbillings Nov 11, 2015 1:53 PM in response to Eric Wieczorek
    Level 1 (0 points)
    Nov 11, 2015 1:53 PM in response to Eric Wieczorek

    Eric, I went back and used a trial version of Outlook to create and export out a PST file of my emails. Then I downloaded PST Easy Convert from the Apple App store ($5) and used that program to convert directly into Apple Mail.  It worked perfectly.  Hope this helps.

    sbillings

  • by mlevitt,

    mlevitt mlevitt Jul 17, 2016 9:37 PM in response to Dude2009
    Level 1 (4 points)
    Jul 17, 2016 9:37 PM in response to Dude2009

    I ran into this as well but solved it.

     

    Some background: The problem is that the output .mbox file has the wrong line endings and the mail import can't handle it. Windows normally ends lines with a carriage return and linefeed while a unix system (Mac is unix under the covers) uses only a linefeed. The cause of the crash (I suspect) is that the .mbox output by Outlook has only carriage returns. You could buy an app from the store to translate an OLM file, but it can be done for free if you're willing to try a few commands at the terminal.

     

    Steps

    1. Make a new folder and copy your .mbox files in. They should be the only files in this folder. The lines beneath assume you have this folder on your desktop and it's called "importing'.
    2. Copy the folder to a new location as a backup if you can't recreate them easily.
    3. Open the 'Terminal' app (found in Applications/Utilities/ in the Finder).
    4. Run these commands (I suggest you copy / paste):

      cd ~/Desktop/importing
      perl -pi -e 's|\r|\n|g'  *.mbox

    This may a while to process all of the .mbox files if they're large, but when it's done, you should be able to open the .mbox files with the TextEdit app or just run the import:

    • Open Mail
    • File -> Import Mailboxes...
    • Select "Files in box format'
    • navigate to Desktop, select the 'importing' folder
    • click 'Choose' and...
    • revel in the glory!