org.nuxeo.cm.mail.actionpipe.parser
Class GmailMailParser
java.lang.Object
org.nuxeo.cm.mail.actionpipe.parser.DefaultEnglishMailParser
org.nuxeo.cm.mail.actionpipe.parser.GmailMailParser
- All Implemented Interfaces:
- MailActionPipeConstants, MailBodyParser
public class GmailMailParser
- extends DefaultEnglishMailParser
This is the Gmail English Mail Parser which is from a forwarded mail using
English Gmail (web interface). The header pattern is a bit different (not in
the same order) and the date is not in the same format.
- Author:
- Sun Seng David TAN
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 |
GMAIL_ENGLISH_HEADER_PATTERN
public static final Pattern GMAIL_ENGLISH_HEADER_PATTERN
GMAIL_DATE_FORMAT
public static final String GMAIL_DATE_FORMAT
- See Also:
- Constant Field Values
GmailMailParser
public GmailMailParser()
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
parse
public boolean parse(Matcher m,
Map<String,Object> resultMap)
- Description copied from interface:
MailBodyParser
- Perform the parsing
- Specified by:
parse
in interface MailBodyParser
- Overrides:
parse
in class DefaultEnglishMailParser
- Returns:
Copyright © 2011 Nuxeo SAS. All Rights Reserved.