----- Original Message -----
From: "Craig W. Blake" <[EMAIL PROTECTED]>


> Hello all,
>
> I noticed that when a message passes through the ToProcessor mailet it
loses the
> remoteHost and remoteAddr data due to James creating a new MailImpl
instance
> with just the sender, recipients, message and state data, which gives the
> MailImpl object the default remoteHost (localhost) and
remoteAddr(127.0.0.1).
> Is this the expected behavior, or is it a bug?  I would guess bug, since
this
> should (and on my system it does) break the built in anti-spam protection
from
> the match="RemoteAddrNotInNetwork=127.0.0.1" directive using CVS sources
from a
> few days ago.  Of course I could just be missing something...
>
> Craig B.

Yeah, thanks Craig... I was just looking at that mailet as well as it's not
written the way I would have expected.  It should just set the state of the
Mail object and do nothing else... by trying to reenter it into the mail
queue, you lose the remote info as you say, and as Ivan was saying earlier
in the week, you lose the ability to put an error message on it.

I'm going to mess with it a bit... perhaps the setting the state on a
message isn't properly moving it to that processor, so it was written to be
functional.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to