Importing .mbs (Opera mail) to thunderbird

For some reason thunderbird still does not support an automatic way to import these .mbs files generated by Opera although it uses the format it self.

The procedure is quite simple and all you have to do is the following: First you have to find the folder where the mails are saved by thunderbird on your hard drive. That is on:

Tools->Account Settings->Local Folders->Local directory

By default this is:

C:\Users\<user_name>\AppData\Roaming\Thunderbird\Profiles\<random_sequence>.default\Mail\Local Folders

where <user_name> is the username of the user (as in windows username) and the <random_sequence> is a random sequence of characters.

There you will find files with no extension accompanied by files with the .msf extension. If you have created any subfolder you will see folders with the foldername.sdb format.

  1. To import your email create a folder in the Local directory (e.g. importedmail.sdb). You have to stick with that name to the following steps (that is importedmail).
  2. Then inside the folder copy the .mbs file and rename it to importedmail with no extension
  3. Copy the .mbs file again this time rename it to importedmail.msf.
  4. Restart thunderbird and wait for a while. A importedmail folder should appear under the Local Folders. After that you can copy these emails to a mail account.

I tried to create he folders directly in a gmail account but thunderbird wouldn’t find the mails. Thus I first imported to the Local folders and then copied to the account.


MatLab to Excel

Sometimes I have trouble visualizing some matrix structures that I create in MatLab. And when I get to see them in the MatLab command line or the matlab workspace it does not help much. A way to deal with that and seek and understand patterns easier is to export them in excel. MatLab supports this with the instructions:

xlsread (to read from an excel file) and

xlswrite (to write to one)

the parameters that follow are:

(filename, matrix(to be written max 2 dimensions), sheet, range)

by using the following one can create matrixes that contain both data and titles:

matrix1 = {‘Title1', Title2'; 1 423 ; 2 742; 3 192}

And to actually write in an excel file:

xlswrite('matrix1.xls', matrix1, 'Example Sheet', 'E1')

It is needless to point out the usefulness of this. One can either import data to MatLab from an excel (which amy be automated to produce desired data and easily editable) and once the simulation is done and the results are calculated they can be exported for further analysis in an excel too.

Both tools are very powerful mathematical tools each one with different properties. The combination of these both can really give solutions to many problems!