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>[EMAIL PROTECTED]</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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to