Jason Long ha scritto:
> I want to try to use Gmail as my spam filter from the following article:
> 
>  
> 
> http://mboffin.com/post.aspx?id=1636
> 
>  
> 
> Here is the header I am looking for.
> 
> X-Forwarded-For: [EMAIL PROTECTED]  <mailto:[EMAIL PROTECTED]> [EMAIL 
> PROTECTED]


To check if a mail has the X-Forwarded-For header you can use the
"HasHeader" matcher.
If the header is present you can use the ToProcessor to send the message
to the processor for local storage/processing.
In the following mailet (so, when no X-Forwarded-For is found) you use
the Forward or Resend mailets:
http://james.apache.org/server/2.3.1/apidocs/org/apache/james/transport/mailets/Forward.html

Once you get it working please post your configuration so other users
interested in this will find something on a google search :-)

Stefano


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

Reply via email to