Author: norman
Date: Sat Jul 8 05:53:34 2006
New Revision: 420103
URL: http://svn.apache.org/viewvc?rev=420103&view=rev
Log:
Add more comments
Modified:
james/server/trunk/src/java/org/apache/james/smtpserver/SpamAssassinHandler.java
Modified:
james/server/trunk/src/java/org/apache/james/smtpserver/SpamAssassinHandler.java
URL:
http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/smtpserver/SpamAssassinHandler.java?rev=420103&r1=420102&r2=420103&view=diff
==============================================================================
---
james/server/trunk/src/java/org/apache/james/smtpserver/SpamAssassinHandler.java
(original)
+++
james/server/trunk/src/java/org/apache/james/smtpserver/SpamAssassinHandler.java
Sat Jul 8 05:53:34 2006
@@ -28,13 +28,34 @@
import org.apache.james.util.SpamAssassinInvoker;
import org.apache.james.util.mail.dsn.DSNStatus;
+/**
+ * This MessageHandler could be used to check message against spamd before
+ * accept the email. So its possible to reject a message on smtplevel if a
+ * configured hits amount is reached.<br>
+ *
+ * Sample Configuration: <br>
+ * <br>
+ * <handler class="org.apache.james.smtpserver.SpamAssassinHandler">
+ * <spamdHost>localhost</spamdHost>
+ * <spamdPort>783</spamdPort> <br>
+ * <spamdRejectionHits>15.0</spamdRejectionHits> </handler>
+ */
public class SpamAssassinHandler extends AbstractLogEnabled implements
MessageHandler, Configurable {
+ /**
+ * The port spamd is listen on
+ */
private int spamdPort = 783;
+ /**
+ * The host spamd is runnin on
+ */
private String spamdHost = "localhost";
+ /**
+ * The hits on which the message get rejected
+ */
private double spamdRejectionHits = 0.0;
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]