Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.mail.actionpipe.parser
Class ThunderbirdFrenchMailParser

java.lang.Object
  extended by org.nuxeo.cm.mail.actionpipe.parser.DefaultEnglishMailParser
      extended by org.nuxeo.cm.mail.actionpipe.parser.ThunderbirdFrenchMailParser
All Implemented Interfaces:
MailActionPipeConstants, MailBodyParser

public class ThunderbirdFrenchMailParser
extends DefaultEnglishMailParser

This is the Thunderbird French Mail Parser which is from a forwarded mail using French Thunderbird. The header pattern is a bit different: labels are in French.

Author:
Sun Seng David TAN

Field Summary
static Pattern THUNDERBIRD_FRENCH_HEADER_PATTERN
           
 
Fields inherited from class org.nuxeo.cm.mail.actionpipe.parser.DefaultEnglishMailParser
DATE_FORMAT, DEFAULT_CONTACT_PATTERN, log, THUNDERBIRD_ENGLISH_HEADER_PATTERN
 
Fields inherited from interface org.nuxeo.cm.mail.actionpipe.MailActionPipeConstants
ATTACHMENTS_KEY, BODY_KEY, CASEMANAGEMENT_SERVICE_KEY, CORE_SESSION_ID_KEY, MESSAGE_ID_KEY, MIMETYPE_SERVICE_KEY, ORIGINAL_CC_RECIPIENTS_KEY, ORIGINAL_RECEPTION_DATE_KEY, ORIGINAL_SENDER_NAME_KEY, ORIGINAL_SENDERS_KEY, ORIGINAL_TO_RECIPIENTS_KEY, RECEPTION_DATE_KEY, SENDER_EMAIL_KEY, SENDER_KEY, SUBJECT_KEY
 
Constructor Summary
ThunderbirdFrenchMailParser()
           
 
Method Summary
 Pattern getHeaderPattern()
          The header pattern used to identify a parser to be used
 
Methods inherited from class org.nuxeo.cm.mail.actionpipe.parser.DefaultEnglishMailParser
parse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THUNDERBIRD_FRENCH_HEADER_PATTERN

public static final Pattern THUNDERBIRD_FRENCH_HEADER_PATTERN
Constructor Detail

ThunderbirdFrenchMailParser

public ThunderbirdFrenchMailParser()
Method Detail

getHeaderPattern

public Pattern getHeaderPattern()
Description copied from interface: MailBodyParser
The header pattern used to identify a parser to be used

Specified by:
getHeaderPattern in interface MailBodyParser
Overrides:
getHeaderPattern in class DefaultEnglishMailParser
Returns:
the regexp to be used

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.