diff --git a/spring-integration-reference/src/mail.xml b/spring-integration-reference/src/mail.xml
index df20eadf0b..ee9c863be0 100644
--- a/spring-integration-reference/src/mail.xml
+++ b/spring-integration-reference/src/mail.xml
@@ -36,6 +36,26 @@
+
+ Mail-Receiving Channel Adapter
+
+ Spring Integration also provides support for inbound email with the
+ MailReceivingMessageSource. It delegates to a configured instance of Spring
+ Integration's own MailReceiver interface, and there are two implementations:
+ Pop3MailReceiver and ImapMailReceiver. The easiest way to
+ instantiate either of these is by passing the 'uri' for a Mail store to the receiver's constructor. For example:
+
+
+
+ Another option for receiving mail is the IMAP "idle" command (if supported by the mail server you are using).
+ Spring Integration provides the ImapIdleChannelAdapter which is itself a Message-producing
+ endpoint. It delegates to an instance of the ImapMailReceiver but enables asynchronous
+ reception of Mail Messages. There are examples in the next section of configuring both types of inbound Channel
+ Adapter with Spring Integration's namespace support in the 'mail' schema.
+
+
+
Mail Namespace Support
@@ -61,6 +81,22 @@
<poller> sub-element should be provided with either an interval-trigger or cron-trigger.
+
+ 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
+ requires the store URI and the channel to send inbound Messages to. The URI may begin with "pop3" or "imap":
+
+
+
+
+ ]]>
+ If you do have IMAP idle support, then you may want to configure the "imap-idle-channel-adapter" element instead.
+ Since the "idle" command enables event-driven notifications, no poller is necessary for this adapter. It will
+ send a Message to the specified channel as soon as it receives the notification that new mail is available:
+ ]]>
+
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