james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r420103 - /james/server/trunk/src/java/org/apache/james/smtpserver/SpamAssassinHandler.java
Date Sat, 08 Jul 2006 12:53:34 GMT
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>
+ * &lt;handler class="org.apache.james.smtpserver.SpamAssassinHandler"&gt;
+ * &lt;spamdHost&gt;localhost&lt;/spamdHost&gt;
+ * &lt;spamdPort&gt;783&lt;/spamdPort&gt; <br>
+ * &lt;spamdRejectionHits&gt;15.0&lt;/spamdRejectionHits&gt; &lt;/handler&gt;
+ */
 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message