public interface IJEMHAttachmentFilterProvider extends IJEMHModuleProvider
Modifier and Type | Interface and Description |
---|---|
static class |
IJEMHAttachmentFilterProvider.AttachmentOutcome
use means use the given attachment
filter means ignore the given attachment
replace means replace the given attachment with a potentially mutated one
|
Modifier and Type | Method and Description |
---|---|
IJEMHAttachmentFilterProvider.AttachmentOutcome |
filter(javax.mail.Message message,
IJEMHRuntimeConfig config,
IJEMHInboundReport report,
com.atlassian.mail.MailUtils.Attachment attachment)
Execute filter processing on the message.
|
String |
getReason() |
void |
init()
Generic init method to allow setup if needed
|
getDescription, getKey, getName, getStatus, getVendor, getVendorUrl, isUsable
static final String UTF8
String getReason()
void init() throws InitFailureException
InitFailureException
- if it breaksIJEMHAttachmentFilterProvider.AttachmentOutcome filter(javax.mail.Message message, IJEMHRuntimeConfig config, IJEMHInboundReport report, com.atlassian.mail.MailUtils.Attachment attachment) throws AttFilterFailureException
message
- The original JavaMail message objectconfig
- The JEMH runtime configuration that is used for this messagereport,
- enabling filter specific detailed loggingattachment
- to filter or notAttFilterFailureException
- if it breaksCopyright © 2008–2021 The Plugin People. All rights reserved.