Redirect.java: Removed redundant <passThrough> tags, added
xml:space="preserve".

Forward.java:

Added:

if (mail.getSender() == null
    || getMailetContext().getMailServers(mail.getSender().getHost()).size()
!= 0) {

and logging when that fails.

If we do not do this check, and somone uses Forward in a processor initiated
by the SenderInFakeDomain matcher (e.g., the default spam processor), then a
fake sender domain will cause an infinite loop (the forwarded e-mail still
comes from a fake domain).  Although this can be viewed as a configuration
error, the consequences of such a mis-configuration are severe enough to
warrant protecting against the infinite loop.

        --- Noel

Attachment: james-diffs
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to