public interface IJEMHMessageFilterProvider extends IJEMHModuleProvider
Modifier and Type | Interface and Description |
---|---|
static class |
IJEMHMessageFilterProvider.ProcessOutcome
canHandle, JEMH will process the message ( all filters have passed )
filtered, JEMH should not process the message, and should leave it in the mailbox
forward, JEMH should not process the message, send to the 'forward' address, and delete the message from the mailbox
reject, JEMH should not process the message, send a reject hintOgram to the sender and delete the message from the mailbox
drop, JEMH should not process the message, the message should be deleted silently from the mailbox
delete, JEMH should delete the message, a status used by the handleMessage() method only
hold, JEMH should delete the message, pending further follow up from a user to create a related user account, requires further reprocessing to re-process the content once a user account has been added
blocked, JEMH cannot process the mail, ie there is a blocking condition (JEMH is disabled in UPM, there is insufficient disk space etc)
|
Modifier and Type | Method and Description |
---|---|
IJEMHMessageFilterProvider.ProcessOutcome |
filter(javax.mail.Message message,
IJEMHRuntimeConfig config,
com.atlassian.jira.service.util.handler.MessageHandlerErrorCollector errorCollector,
com.atlassian.jira.issue.Issue issue,
IJEMHInboundReport report)
Execute filter processing on the message.
|
String |
getReason() |
void |
init()
Generic init method to allow setup if needed
|
boolean |
isLateRunning()
Returns true if the message filter should be run once a project has been determined.
|
getDescription, getKey, getName, getStatus, getVendor, getVendorUrl, isUsable
static final String UTF8
String getReason()
void init() throws InitFailureException
InitFailureException
- if it breaksIJEMHMessageFilterProvider.ProcessOutcome filter(javax.mail.Message message, IJEMHRuntimeConfig config, com.atlassian.jira.service.util.handler.MessageHandlerErrorCollector errorCollector, com.atlassian.jira.issue.Issue issue, IJEMHInboundReport report) throws FilterFailureException
message
- The original JavaMail message objectconfig
- The JEMH runtime configuration that is used for this messageerrorCollector
- For UI error feedback relating to the execution of the filter.issue,
- relatedIssueIfAny for context regarding the issue that may be under comment/updatereport,
- enabling filter specific detailed loggingFilterFailureException
- if it breaksboolean isLateRunning()
Copyright © 2008–2021 The Plugin People. All rights reserved.