This mork parser library was completely rewritten to Python from the mozilla sources. I created it because no one except the source code in mozilla was able to read mork files properly and I wanted to create an address book handler for the gnome deskbar-applet.
This library should be able to properly parse ?every? mork file, however the storage and data structures that are build during parsing may not exactly correspond to structures which were used to create the file (commit and rollback are not supported).
It should also be fast enough, but was not written for speed. Probably someone will have performance problems especially with huge files - please report them to me and perhaps I can improve the code.
Also if you find any mork file that is correct and cannot be parsed with this library please report it to me (ageorgo at users . sourceforge . net).
Download the file and unpack it:
> wget http://tarvid.kallimagarden.com/mork/mork-0.1.tar.gz > tar xzf mork-0.1.tar.gz
Install the library:
> cd mork-0.1 > sudo python setup.py install
This library is used for reading mozilla address book, see abook.py file. If you just want to try if the parser can properly parse a file you can run command:
> python parser.py file_to_be_parsed.mab