* @see org.jasen.interfaces.HTMLParser#parse(javax.mail.internet.MimeMessage, org.jasen.interfaces.JasenMessage, org.jasen.interfaces.MimeMessageTokenizer)
*/
public ParserData parse(MimeMessage mm, JasenMessage message, MimeMessageTokenizer tokenizer) throws JasenException {
String rawHtml = message.getHtmlPart();
String rawText = message.getTextPart();
StandardParserData parserData = new StandardParserData();
if(rawHtml != null) {
String htmlText = extractText(rawHtml);
parserData.setHtmlAsText(htmlText);
quit = false;
}
if(rawText != null) {
String text = extractText(rawText);
parserData.setTextParsed(text);
}
// Now, tokenize the html and text parts of the message
parserData.setMessageTokens(tokenizer.tokenize(mm, message, parserData));
return parserData;
}