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 "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2006/06/14 16:02:29 UTC

[jira] Created: (JAMES-534) Text replacing Mailet

Text replacing Mailet
---------------------

         Key: JAMES-534
         URL: http://issues.apache.org/jira/browse/JAMES-534
     Project: James
        Type: New Feature

  Components: Mailet Contributions  
    Reporter: Stefano Bagnara
    Priority: Minor


Mailet to apply multiple replacing regexp to subject and body of a message.
Replacing rules can be specified in the xml, loaded as a resource text file or loaded as file system file.
In the latter case resource file is automatically reloaded at each service().
This could be made configurable.
InitPattern should be synchronized.


-- 
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
-
For more information on JIRA, 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


[jira] Resolved: (JAMES-534) Text replacing Mailet

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-534?page=all ]

Stefano Bagnara resolved JAMES-534.
-----------------------------------

    Fix Version/s: 3.0
       Resolution: Fixed
         Assignee: Stefano Bagnara

Applied

> Text replacing Mailet
> ---------------------
>
>                 Key: JAMES-534
>                 URL: http://issues.apache.org/jira/browse/JAMES-534
>             Project: James
>          Issue Type: New Feature
>          Components: Mailet Contributions
>            Reporter: Stefano Bagnara
>         Assigned To: Stefano Bagnara
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: ReplaceContent.java, StringUtils.java
>
>
> Mailet to apply multiple replacing regexp to subject and body of a message.
> Replacing rules can be specified in the xml, loaded as a resource text file or loaded as file system file.
> In the latter case resource file is automatically reloaded at each service().
> This could be made configurable.
> InitPattern should be synchronized.

-- 
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
-
For more information on JIRA, 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


[jira] Updated: (JAMES-534) Text replacing Mailet

Posted by "Stefano Bagnara (JIRA)" <se...@james.apache.org>.
     [ http://issues.apache.org/jira/browse/JAMES-534?page=all ]

Stefano Bagnara updated JAMES-534:
----------------------------------

    Attachment: StringUtils.java
                ReplaceContent.java

StringUtils.split is not so good (it does not handle the escaping char the right way).
We wouldn't need it if Mailet API allowed us to have an array of configurations when a configuration is specified multiple times (instead of the comma separated values)

> Text replacing Mailet
> ---------------------
>
>          Key: JAMES-534
>          URL: http://issues.apache.org/jira/browse/JAMES-534
>      Project: James
>         Type: New Feature

>   Components: Mailet Contributions
>     Reporter: Stefano Bagnara
>     Priority: Minor
>  Attachments: ReplaceContent.java, StringUtils.java
>
> Mailet to apply multiple replacing regexp to subject and body of a message.
> Replacing rules can be specified in the xml, loaded as a resource text file or loaded as file system file.
> In the latter case resource file is automatically reloaded at each service().
> This could be made configurable.
> InitPattern should be synchronized.

-- 
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
-
For more information on JIRA, 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