public interface IJEMHMailHeaderPreProcTask extends IJEMHModuleProvider
Modifier and Type | Method and Description |
---|---|
String |
filterHeader(String header,
String value,
IJEMHRuntimeConfig config,
List<ConfigField> taskConfig)
API exposes the config via ConfigFields rather than entities
|
void |
filterHeaders(List<PreProcHeaderBean> headerBeans,
byte[] mailContent,
int profileId)
API exposes the config via ConfigFields rather than entities
|
String |
filterPostProcessedMail(String content) |
List<ConfigField> |
getDefaultConfig()
Allow JEMH to create example TaskConfig as need for this task, list is pre-sorted based on weight
|
List<ConfigField> |
getDefaultConfig(int profileID)
Allow JEMH to create example TaskConfig as need for this task, list is pre-sorted based on weight.
|
Set<String> |
getHeadersHandled()
Collection of headers that are to be processed
|
String |
getWiki()
Doc Page of this extension
|
void |
init(IJEMHRuntimeConfig config,
IJEMHInboundReport report,
List<ConfigField> fields)
Generic init method to allow setup if needed
|
boolean |
isFilterPostProccessedMail() |
boolean |
isProcessedMultipleHeaders() |
boolean |
isScriptSelfTest() |
boolean |
runSelfTest(List<ConfigField> updatedConfig)
run a local self test, if implemented
|
getDescription, getKey, getName, getStatus, getVendor, getVendorUrl, isUsable
static final String UTF8
void init(IJEMHRuntimeConfig config, IJEMHInboundReport report, List<ConfigField> fields) throws InitFailureException
config
- the JEMH runtime configurationreport
- to feedback from preproc tasksfields
- the pre-proc task configuration fieldsInitFailureException
- if it breaksSet<String> getHeadersHandled()
String filterHeader(String header, String value, IJEMHRuntimeConfig config, List<ConfigField> taskConfig) throws PreProcTaskFailureException
header
- the header to filter, eg Tovalue
- the value of the header coming inconfig
- the JEMH runtime configurationtaskConfig
- the list of pre-proc task configuration fieldsPreProcTaskFailureException
- if it breaksvoid filterHeaders(List<PreProcHeaderBean> headerBeans, byte[] mailContent, int profileId) throws PreProcTaskFailureException
headerBeans
- the List of headers to filter, eg To, Cc. Bean Contains Header Name, Original Value and Updated ValuePreProcTaskFailureException
- if it breaksList<ConfigField> getDefaultConfig()
List<ConfigField> getDefaultConfig(int profileID)
boolean runSelfTest(List<ConfigField> updatedConfig) throws PreProcTaskFailureException
updatedConfig
- updated pre-proc task configPreProcTaskFailureException
- if it didn'tboolean isScriptSelfTest()
boolean isProcessedMultipleHeaders()
boolean isFilterPostProccessedMail()
String filterPostProcessedMail(String content)
content
- the email body after other pre-proc tasks have manipulated headersString getWiki()
Copyright © 2008–2022 The Plugin People. All rights reserved.