For various reasons, it is often needed to archive e-mails, i.e. export them from a mail client or server in order to store them in a mass storage device. However, most (if not all) mail management software currently use storage formats that are not suitable for direct archiving. Indeed, common formats (Mbox, MailDir and MH) store mails MIME-encoded, which means :
Xineo XMA (XML Mail Archiver) aims to provide a simple way to archive mails in XML under a well-specified schema, in order to make this data durably and easily accessible to users and third-party software :
In order to handle as many input formats as possible, XMA relies on the JavaMail API, which means that it is able to archive mails from POP3 and IMAP servers, MBOX, MailDir and MH file formats using third-party providers (MBOX included with XMA distribution), as well as any JavaMail supported mail providers.
XML schemas are specified using XSchema. The distribution also includes sample XSLT and CSS stylesheets that can be used to visualize the exported messages.
Current release is preliminary, and mostly intended to get some feedback. So everything is subject to changes. Please don't hesitate to send comments, especially about XML schemas.
A set of sample messages exported in XML (mostly spam) is available here. If you use a reasonably recent browser (like Mozilla or IE6), you whould see XSLT-styled pages. In this case, use the "View Page Source" command of your browser to see the raw XML files.Go to sample output...
Usage : java -jar xineo-xma.jar <options>, where available options are :
Uncommented API documentation is available here. More documentation will be available in the future.
The following namespaces are currently defined :
The corresponding schemas are specified :
Downloads are available at SourceForge's download center. Look for the xineo-mail package.
Xineo XMA is free software. It is published under the GNU GPL.