...
Info |
---|
title | Poller endpoint attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Default |
---|
connection | string | sets the connection information | null (must be spec'd) | deleteProcessedMessages | boolean | delete mail from server when it is processed | false | processOnlyUnseenMessages | boolean | process only mails which are new (unseen) | true | marshaler | class | org.apache.servicemix.mail.marshaler.AMailMarshalerSupport AbstractMailMarshaler | DefaultMailMarshaler | |
debugMode | boolean | sets the debug mode for the javamail api | false | |
customTrustManagers | string | sets one or more custom trust managers for use with ssl | null |
|
...
Info |
---|
title | Sender endpoint attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Default |
---|
connection | string | sets the connection information | null (must be spec'd) | sender | string | defines the sender address of the mail | no-reply@localhost | marshaler | class | org.apache.servicemix.mail.marshaler.AMailMarshalerSupport AbstractMailMarshaler | DefaultMailMarshaler | |
debugMode | boolean | sets the debug mode for the javamail api | false | |
customTrustManagers | string | sets one or more custom trust managers for use with ssl | null |
|
...
You can write your own marshalers for conversion between mail and normalized message and vice versa.
To do this you simply need to subclass the org.apache.servicemix.mail.marshaler.AMailMarshalerSupportAbstractMailMarshaler or even the
DefaultMailMarshaler if you don't want to start from scratch.
Subclassing the
...
AbstractMailMarshaler
For providing your own marshaler you only need to implement two methods:
...
There are some more important properties which affect the handling of the message / mail (constants are defined in AMailMarshalerSupportAbstractMailMarshaler):
Info |
---|
title | Special message properties |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Constant | Value | Description |
---|
|
MSG_TAG_TO | org.apache.servicemix.mail.to | The address(es) the mail was or will be sent to. | |
MSG_TAG_CC | org.apache.servicemix.mail.cc | The addess(es) the mail was or will be sent to as copy. | |
MSG_TAG_BCC | org.apache.servicemix.mail.bcc | The addess(es) the mail will be sent to as blind copy. | |
MSG_TAG_FROM | org.apache.servicemix.mail.from | The addess the mail was received from or will be used as sender. | |
MSG_TAG_TEXT | org.apache.servicemix.mail.text | Contains the plain text content of the mail body if existing. | |
MSG_TAG_HTML | org.apache.servicemix.mail.html | Contains the html content of the mail body if existing. | |
MSG_TAG_SUBJECT | org.apache.servicemix.mail.subject | The subject of the received mail or for the mail to be sent. | |
MSG_TAG_REPLYTO | org.apache.servicemix.mail.replyto | The address to be used as reply-to. | |
MSG_TAG_SENTDATE | org.apache.servicemix.mail.sentdate | The date the email was sent. | |
MSG_TAG_ALTERNATIVE_CONTENT0..n | org.apache.servicemix.mail.alternativecontent | Contains the alternative content of the mail body. |
|
...