com.atlassian.confluence.plugins.emailgateway.api
Interface EmailContentParser

All Known Implementing Classes:
DefaultEmailContentParser

@PublicApi
public interface EmailContentParser

Parses fields from an email.

Since:
5.3

Method Summary
 java.util.List<javax.mail.internet.InternetAddress> getEmailAddressesFromContent(java.lang.String content)
          Gets the set of email addresses mentioned in the given email content - including the sender, to, cc and bcc recipients.
 java.lang.String parseContent(ReceivedEmail email)
          Parses the content of the email into Storage XHTML.
 java.lang.String parseSubject(java.lang.String subject)
          Parses the subject to strip away any forward or reply prefixes.
 

Method Detail

parseSubject

java.lang.String parseSubject(java.lang.String subject)
Parses the subject to strip away any forward or reply prefixes.

Parameters:
subject - the subject to parse
Returns:
the subject without prefixes

getEmailAddressesFromContent

java.util.List<javax.mail.internet.InternetAddress> getEmailAddressesFromContent(java.lang.String content)
Gets the set of email addresses mentioned in the given email content - including the sender, to, cc and bcc recipients.

Parameters:
content - the content to parse
Returns:
the recipients found

parseContent

java.lang.String parseContent(ReceivedEmail email)
Parses the content of the email into Storage XHTML.

Parameters:
email - the email to parse
Returns:
the content


Copyright © 2003-2014 Atlassian. All Rights Reserved.