james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Perry (JIRA)" <server-...@james.apache.org>
Subject [jira] Updated: (JAMES-364) Made adding of footer optional with CommandListServProcessor
Date Tue, 05 Apr 2005 14:41:20 GMT
     [ http://issues.apache.org/jira/browse/JAMES-364?page=history ]

Daniel Perry updated JAMES-364:
-------------------------------

    Attachment: addfooterpatch.txt

The patch as a txt file.

> Made adding of footer optional with CommandListServProcessor
> ------------------------------------------------------------
>
>          Key: JAMES-364
>          URL: http://issues.apache.org/jira/browse/JAMES-364
>      Project: James
>         Type: Improvement
>   Components: Matchers/Mailets (bundled)
>  Environment: N/A
>     Reporter: Daniel Perry
>     Priority: Minor
>  Attachments: addfooterpatch.txt
>
> The CommandListServ attaches a footer.  This patch makes that optional, and defaults
to true.  If you add: <addfooter>false</addfooter> then it will not add the footer,
and if you leave out that element (as in all existing installations!) then it wont effect
the footer.
> Daniel.
> Patch follows:
> --- src\java\org\apache\james\transport\mailets\CommandListservProcessor.java_svn	Tue
Mar 29 
> 17:08:45 2005
> +++ src\java\org\apache\james\transport\mailets\CommandListservProcessor.java	Tue Apr
05 15:02:31 
> 2005
> @@ -156,7 +156,8 @@
>  
>      protected boolean specificPostersOnly;
>      protected Collection allowedPosters;
> -
> +    protected boolean addFooter;
> +    
>      /**
>       * Initialize the mailet
>       */
> @@ -172,6 +173,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
> @@ -208,7 +210,9 @@
>              }
>  
>              //addfooter
> -            addFooter(mail);
> +            if (addFooter){
> +                addFooter(mail);
> +            }
>  
>              //prepare the new message
>              MimeMessage message = prepareListMessage(mail, listservAddr);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
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