Configures a Consumer Endpoint for the
'org.springframework.integration.mail.MailSendingMessageHandler' that
sends mails according te provided options.
Specifies the order for invocation when this endpoint is connected as a
subscriber to a SubscribableChannel.
Defines a Polling Channel Adapter for the
'org.springframework.integration.mail.MailReceivingMessageSource'
that polls a mailbox for mail messages.
Reference to a custom implementation of org.springframework.integration.mail.SearchTermStrategy
to use when retrieving email. Only permitted with 'imap' protocol or an 'imap' uri.
By default, the ImapMailReceiver will search for Messages based on the default SearchTerm
which is "All mails that are RECENT (if supported), that are NOT ANSWERED, that are NOT DELETED, that are NOT SEEN and have not
been processed by this mail receiver (enabled by the use of the custom USER flag or simply NOT FLAGGED if not supported)".
Defines a Message Producing Endpoint for the
'org.springframework.integration.mail.ImapIdleChannelAdapter' that listens to the changes in the mail
box via IMAP protocol.
If a (synchronous) downstream exception is thrown and an error-channel is specified,
the MessagingException will be sent to this channel. Otherwise, any such exception
will simply be logged as a warning by the channel adapter.
Reference to a custom implementation of org.springframework.integration.mail.SearchTermStrategy
to use when retrieving email.
By default, the ImapMailReceiver will search for Messages based on the default SearchTerm
which is "All mails that are RECENT (if supported), that are NOT ANSWERED, that are NOT DELETED, that are NOT SEEN and have not
been processed by this mail receiver (enabled by the use of the custom USER flag or simply NOT FLAGGED if not supported)".
Specify the javax.mail.Session reference.
NOTE: if this is provided, then 'java-mail-properties' should not be.
Reference to a 'java.util.Properties' instance with settings for the JavaMail Session.
NOTE: if this is provided, then 'session' should not be.
Specify the javax.mail.Authenticator.
NOTE: if this is provided, then 'session' should not be.
When 'true', messages produced by the source will be rendered by 'MimeMessage.getContent()'
which is usually just the body for a simple text email. When false (default) the content
is rendered by the 'getContent()' method on the actual message returned by the underlying
javamail implementation.
For example, an IMAP message is rendered with some message headers.
This attribute is provided so that users can enable the previous behavior, which just
rendered the body.
Defines a Transformer ('org.springframework.integration.mail.transformer.MailToStringTransformer')
that converts a javax.mail.Message payload to a String.
Defines a 'org.springframework.integration.transformer.HeaderEnricher' for adding statically
configured Mail Headers.
Specify the default boolean value for whether to overwrite existing header values. This will only take effect for
sub-elements that do not provide their own 'overwrite' attribute. If the 'default-overwrite' attribute is not
provided, then the specified header values will NOT overwrite any existing ones with the same header names.
Boolean value to indicate whether this header value should overwrite an existing header value for the same name.
' bean.
When not supplied, the message payload will be the raw MimeMessage with no header mapping.
When a mapper is provided, the mail headers are mapped to 'MessageHeaders' and the payload
will depend on the email contents, and the setting of 'embedded-parts-as-bytes'. The framework
provides a 'DefaultMailHeaderMapper'; see the reference manual regarding the headers mapped
and the payload types.
]]>
When a 'header-mapper' is provided, and the 'MimeMessage' has embedded 'Part' (e.g. 'Message' or
'Multipart') contents, the message payload will be a byte[] containing the raw data. Set this
boolean to 'false' for the payload to be a decoded 'Part' object. Note that 'Part's are not
'Serializable', nor are they suitable for serialization using other technologies such as Kryo.
Default 'true' (payload is 'byte[]').