From d5b607a396730d3f5d2e308c3ab5d15de5907f59 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Sun, 18 Aug 2013 14:47:51 -0400 Subject: [PATCH] INT-2901 Fix Mail HeaderEnricher Doc The move from attributes to child elements was not reflected in the reference manual. --- src/reference/docbook/mail.xml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/reference/docbook/mail.xml b/src/reference/docbook/mail.xml index 362aa99913..ad59e3562c 100644 --- a/src/reference/docbook/mail.xml +++ b/src/reference/docbook/mail.xml @@ -87,6 +87,25 @@ <poller> sub-element should be provided with either an interval-trigger or cron-trigger. + + When using the namespace support, a header-enricher Message Transformer is also available. + This simplifies the application of the headers mentioned above to any Message prior to sending to the + Mail Outbound Channel Adapter. + + + + + + + + +]]> + + This example assumes the payload is a JavaBean with appropriate getters for the specified properties, but + any SpEL expression can be used. Alternatively, use the value attribute to specify a + literal. Notice also that you can specify default-overwrite and individual + overwrite attributes to control the behavior with existing headers. + To configure an Inbound Channel Adapter, you have the choice between polling or event-driven (assuming your mail server supports IMAP IDLE - if not, then polling is the only option). A polling Channel Adapter simply @@ -217,18 +236,6 @@ In the above example instead of relying on the default SearchTermStra - - When using the namespace support, a header-enricher Message Transformer is also available. - This simplifies the application of the headers mentioned above to any Message prior to sending to the - Mail-sending Channel Adapter. - ]]> - The <imap-idle-channel-adapter/> also accepts the 'error-channel' attribute. If a downstream exception is thrown and an 'error-channel' is specified,