diff --git a/docs/src/reference/docbook/mail.xml b/docs/src/reference/docbook/mail.xml index 1382a66cc4..a62b73c9f4 100644 --- a/docs/src/reference/docbook/mail.xml +++ b/docs/src/reference/docbook/mail.xml @@ -124,25 +124,24 @@ In both configurations channel and should-delete-messages are the REQUIRED -    attributes. The important thing to understand is why should-delete-messages is required? -    The issue is with POP3 protocol, which does NOT have any knowlege of messages that were READ. It can only know what's been read  -    within a single session. This means that when your POP3 mail adapter is running emails are successfully consumed as as they become available during each poll +    attributes. The important thing to understand is why should-delete-messages is required. +    The issue is with the POP3 protocol, which does NOT have any knowledge of messages that were READ. It can only know what's been read  +    within a single session. This means that when your POP3 mail adapter is running, emails are successfully consumed as as they become available during each poll     and no single email message will be delivered more then once. However, as soon as you restart your adapter and begin a new session -    all the email messages that might have been retreeved in the previous session will be retrieved again. That is the nature of POP3. Some might argue -    that why not set should-delete-messages to TRUE by default? Becouse there are two valid amd mutually exclusive use cases  -    which makes it very hard pick the right default. You may want to configure your adapter as the only email receiever in which +    all the email messages that might have been retrieved in the previous session will be retrieved again. That is the nature of POP3. Some might argue +    that should-delete-messages should be TRUE by default. In other words, there are two valid and mutually exclusive use cases  +    which make it very hard to pick a single "best" default. You may want to configure your adapter as the only email receiver in which     case you want to be able to restart such adapter without fear that messages that were delivered before will not be redelivered again.  -    In this case setting should-delete-messages to TRUE would make most sence. However, you may have anoher use case where  +    In this case setting should-delete-messages to TRUE would make most sense. However, you may have another use case where      you may want to have multiple adapters that simply monitor email servers and their content. In other words you just want to 'peek but not touch'.      Then setting should-delete-messages to FALSE would be much more appropriate. So since it is hard to choose what should be -    the right default value for should-delete-messages attribute we simply made it required to be set - leaving it up to you -    while also not letting you to forget that you must set it. +    the right default value for the should-delete-messages attribute, we simply made it a required attribute, to be set by the user. + Leaving it up to the user also means, you will be less likely to end up with unintended behavior. - When configuring a polling adapter (e.g., inbound-channel-adapter) should-mark-messages-as-read + When configuring a polling email adapter's should-mark-messages-as-read attribute, be aware of the protocol you are configuring to retrieve messages. For example POP3 does not support this flag - which means setting it to either value will have no effect as messages will NOT be marked as read - + which means setting it to either value will have no effect as messages will NOT be marked as read. When using the namespace support, a header-enricher Message Transformer is also available. @@ -159,7 +158,7 @@ Finally, the <imap-idle-channel-adapter/> also accepts the 'error-channel' attribute. If a downstream exception is thrown and an 'error-channel' is specified, - a MessagingException message containing the failed message and exception, will be sent to this channel. + a MessagingException message containing the failed message and original exception, will be sent to this channel. Otherwise, if the downstream channels are synchronous, any such exception will simply be logged as a warning by the channel adapter.