xena.plugin.email
Class EmailToXenaEmailNormaliser

public class EmailToXenaEmailNormaliser
extends xena.kernel.AbstractNormaliser
Normalise an email to a Xena email instance. We use the one normaliser for all input email types for several reasons. Firstly, the Java Mail API makes it easy. Secondly, it makes it much easier to change the format or fix bugs. The same normaliser also caters for two rather different situations - the case where one input file results in one output Xena file. And the case where one input file (email folder(s)) results in multiple output files. In the former case the main result of the normaliser is the Xena email file. In the latter case, the main result of the normaliser is a summary file, and the email files are created separately. Catering for these two situations requires the check of the doMany flag.
Author:
Chris Bitmead.
Method Detail

parse

public void parse(org.xml.sax.InputSource input)
Note: mail.jar must be earlier in the classpath than the GNU mail providers otherwise wierd things happen with attachments not being recognized.
Parameters:
input -
Throws:
java.io.IOException -
org.xml.sax.SAXException -