Ubuntu – What format does evolution store its mail in

emailevolutionfile format

My evolution (3.0.3) has a maildir directory:

~/.local/share/evolution/mail/local/
                                    cur/##########.######_#.username:2,S
                                    cur/#########.######_#.username:2,S
                                    folders.db
                                    new/
                                    tmp/

folders.db says something about sqlite in it, I can't tell if there are mail messages in that file; the files under cur seem to have messages in them; but they are not in mbox format, and it doesn't look like all of the messages that I have under "On This Computer" are in these files.

There is no ~/.evolution/ directory.

How (and where if I'm not looking in the right place) does evolution store its email?

Best Answer

The default local folder implementation (for folders under "On This Computer") uses mbox(5) format, in which all the messages at the top level of each folder are kept contiguously in a single file, supplemented by some summary and index files. This structure lives under ~/.evolution/mail/local/. For every mail folder foo, some or all of the following files exist:

foo
foo.cmeta
foo.ev-summary
foo.ev-summary-meta
foo.ibex.index
foo.ibex.index.data    
foo.sbd

The file foo is just plain old mbox(5) format and you may access it (carefully, and preferably read-only) with a MUA which understands mbox format, i.e. nearly all of them. For example with 'mutt':

$ mutt -R -f ~/.evolution/mail/local/foo

You should only do this when Evolution itself is not running. Note that any of the supplementary files can be removed and Evolution will reconstruct them next time it runs. You can also grep the file for text strings or addresses for use in the normal UNIX world.

The foo file contains only messages. If the foo folder contains other folders the contents of the foo.sbd directory recursively look like the above list.

I can honestly say with out any hesitation that I have got this answer from think FAQ-Evolution web-page. you can review that for more information.