Reading mork files

Mork is a somewhat mysterious database format used by Firefox and Thunderbird. Even if it's pure text it's impossible to 'read' the file. See wikipedia.

There are few sources of information about mork in the web, mainly:

mork was and is used by:

and probably more i'm not aware of.

I've tried to find some programms which are able to read mork files. I found some python scripts, which i didn't get running and a perl script that was able to read the Firefox history files but not the others. With the help of the sources mentioned above and some reverse engineering i've managed to extend this perl script to read all the files, to some extend.

mork.pl