public abstract class AbstractEmailEventListener
extends java.lang.Object
EmailClientProvider services are
used to parse and extract relevant information. Suitable EmailClientProvider service is selected based on
mail content.
Post is parsed from "Subject". If not found, post is parsed from "To" header of the inbound mail. Format of the
header is emailID+Comment Path@Domain Name.
Author is detected from "From" header of inbound mail. First email address is considered as author email id.
Two properties are associated with email Nodes which indicate processing status namely "processingStatus": values
can be {processing, success, failure} and "processingStatusMsg": set when error occurred while processing email,
stores error message and sends failure email to the sender.| Constructor and Description |
|---|
AbstractEmailEventListener() |
| Modifier and Type | Method and Description |
|---|---|
EmailContent |
getEmailContent(Resource resource)
Parses reply email data and returns information needed to create a post including list of attachments.
|
void |
onEvent(EventIterator events) |
void |
sendFailureEmailReply(EmailContent emailContent)
Sends failure notification email to the sender of the email if the email fails to be processed.
|
public void onEvent(EventIterator events)
public EmailContent getEmailContent(Resource resource)
resource - the email resource that has been createdpublic void sendFailureEmailReply(EmailContent emailContent)
emailContent - the parsed content of the mail which failed to perform the desired task."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"