LibDBX, part of the ol2mbox project, contains C
and a C++ interfaces for accessing Outlook Express
dbx files. The C++ interface is just a wrapper for
the C interface. It includes two programs. One
will read a dbx file and output the emails in mbox
format to stdout, the other will read the main
"folder.dbx" file and export all the folders into
separate mbox files.