You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2006/06/14 12:22:36 UTC

svn commit: r414176 - /james/server/trunk/src/java/org/apache/james/transport/mailets/CommandListservProcessor.java

Author: norman
Date: Wed Jun 14 03:22:35 2006
New Revision: 414176

URL: http://svn.apache.org/viewvc?rev=414176&view=rev
Log:
Add Option to disable the addFototer in CommandListServProcessor. Thx to Daniel Perry for the Patch. See JAMES-364

Modified:
    james/server/trunk/src/java/org/apache/james/transport/mailets/CommandListservProcessor.java

Modified: james/server/trunk/src/java/org/apache/james/transport/mailets/CommandListservProcessor.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/transport/mailets/CommandListservProcessor.java?rev=414176&r1=414175&r2=414176&view=diff
==============================================================================
--- james/server/trunk/src/java/org/apache/james/transport/mailets/CommandListservProcessor.java (original)
+++ james/server/trunk/src/java/org/apache/james/transport/mailets/CommandListservProcessor.java Wed Jun 14 03:22:35 2006
@@ -60,6 +60,7 @@
  *  <autobracket>true</autobracket>
  *  <listOwner>owner@localhost</listOwner>
  *  <listName>announce</listName>
+ *  <addFooter>true</addFooter>
  * </mailet>
  *
  * </pre>
@@ -159,6 +160,8 @@
 
     protected boolean specificPostersOnly;
     protected Collection allowedPosters;
+    
+    protected boolean addFooter;
 
     /**
      * Initialize the mailet
@@ -175,6 +178,7 @@
             autoBracket = getBoolean("autobracket", true);
             listOwner = new MailAddress(getString("listOwner", null));
             specificPostersOnly = getBoolean("specifiedpostersonly", false);
+            addFooter = getBoolean("addfooter", true);
             //initialize resources
             initializeResources();
             //init user repos
@@ -210,8 +214,8 @@
                 return;
             }
 
-            //addfooter
-            addFooter(mail);
+            //check if the footer should be added. If yes add it
+            if (addFooter) addFooter(mail);
 
             //prepare the new message
             MimeMessage message = prepareListMessage(mail, listservAddr);



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org