Skip navigation.

Exporting Opera mail and importing into Apple Mail

, ,

This quick post explains how I managed to make Opera export some e-mail messages to .mbs file, and then import it into Apple Mail.


Today I needed to export a few e-mail messages to a friend. I'm using Opera as my mail client (I've been using it since version 7 or 6; and the current version is 9.63). My friend is using Apple Mail version 3.5 (930.3) on his Mac OS X version 10.5.6.

So, created a filter (AKA folder) in Opera, put there the messages I wanted to export, right-clicked on it and selected Export.... Opera can only export as .mbs file.

Then I sent that file to my friend, and he tried to import it as Mailbox (mbox). However, Apple Mail imported everything as one huge 4.7MB message, instead of separate messages. Obviously, that was not what we wanted.

He also tried importing as other formats, like Thunderbird format, but without success. I've suggested renaming the extension from .mbs to .mbx, since maybe Apple Mail works like another Apple software which is sensitive to file extension even if the file contents is the same. No luck, still importing as one big message.

After looking at some forum posts [1] [2], I found a small tool called mbs2mbx. It supposedly converts Opera's .mbs files to .mbx. It is written in Python, and uses TkInter graphical toolkit, and thus should run on Windows, Linux and Mac.

I download this tool and gave it a try. It managed to convert all messages from the .mbs file to a .mbx file... except one, which was a spam. Since that one was not important, I'm ignoring it.

Then I gave the new .mbx file to my friend... and Apple Mail could successfully import all messages! Great!

So, what is the difference between the .mbs and the .mbx file? Is Opera format really incompatible with other clients? Well... Not really.

Running gvimdiff, I found that the ONLY difference between those files was that the .mbs had \r\n (CRLF), while the .mbx had \n (LF).

So, I've learned today that Apple Mail is sensitive to newlines when importing a mailbox file.

(Forced) moving from beryl to compiz-fusionValidade dos créditos do Oi Cartão

Comments

Dan Alexandru 10. March 2009, 12:42

:idea:

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

January 2010
S M T W T F S
December 2009February 2010
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30