org.apache.james.transport.mailets
Class SpamAssassin
java.lang.Object
org.apache.mailet.base.GenericMailet
org.apache.james.transport.mailets.SpamAssassin
- All Implemented Interfaces:
- org.apache.mailet.Mailet, org.apache.mailet.MailetConfig
public class SpamAssassin
- extends org.apache.mailet.base.GenericMailet
Sends the message through daemonized SpamAssassin (spamd), visit SpamAssassin.org for info on configuration. The
header X-Spam-Status is added to every message, this contains the score and
the threshold score for spam (usually 5.0). If the message exceeds the
threshold, the header X-Spam-Flag will be added with the value of YES. The
default host for spamd is localhost and the default port is 783.
org.apache.james.spamassassin.status - Holds the status
org.apache.james.spamassassin.flag - Holds the flag
Sample Configuration:
<mailet notmatch="SenderHostIsLocal" class="SpamAssassin">
<spamdHost>localhost</spamdHost>
<spamdPort>783</spamdPort>
Methods inherited from class org.apache.mailet.base.GenericMailet |
arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpamAssassin
public SpamAssassin()
init
public void init()
throws javax.mail.MessagingException
- Overrides:
init
in class org.apache.mailet.base.GenericMailet
- Throws:
javax.mail.MessagingException
- See Also:
org.apache.mailet.GenericMailet#init()
service
public void service(org.apache.mailet.Mail mail)
- Specified by:
service
in interface org.apache.mailet.Mailet
- Specified by:
service
in class org.apache.mailet.base.GenericMailet
- See Also:
org.apache.mailet.GenericMailet#service(Mail)
getMailetInfo
public java.lang.String getMailetInfo()
- Specified by:
getMailetInfo
in interface org.apache.mailet.Mailet
- Overrides:
getMailetInfo
in class org.apache.mailet.base.GenericMailet
- See Also:
org.apache.mailet.GenericMailet#getMailetInfo()
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.