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 "Noel J. Bergman" <no...@devtech.com> on 2002/07/30 22:37:13 UTC
[PATCH] mailets/Redirect.java
This patch simply removes a + " " that a recent patch started appending to
the prefix string. The " " was appended because the author wanted to place
a space between the prefix and the subject. By default, whitespace is
trimmed from body content of elements in the config.xml file, so simply
putting a trailing space in config.xml didn't work. However, by simply
adding xml:space="preserve", one can change that behavior.
The following mailet provides a trivial example:
<mailet match="RecipientIs=test@domain" class="Redirect">
<recipients>user1@domain, user2@domain</recipients>
<to>list@domain</to>
<sender>owner@domain</sender>
<message>sent on from James</message>
<inline>unaltered</inline>
<replyto>postmaster</replyto>
<prefix xml:space="preserve">[test mailing] </prefix>
<!-- ------- this ------- keeps this ^ -->
<static>TRUE</static>
<passThrough>FALSE</passThrough>
</mailet>
Note the use of the xml:space attribute on the <prefix> tag.
RE: [PATCH] mailets/Redirect.java
Posted by "Noel J. Bergman" <no...@devtech.com>.
I, personally, would probably use a space, but it shouldn't be hardcoded
(and wasn't previously) when it is easily configured in the XML.
--- Noel
-----Original Message-----
From: Danny Angus [mailto:danny@apache.org]
Sent: Tuesday, July 30, 2002 17:22
To: James Developers List
Subject: RE: [PATCH] mailets/Redirect.java
I take the general point but..
Why would you not _always_ want the space?
d.
> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 30 July 2002 21:37
> To: James-Dev Mailing List
> Subject: [PATCH] mailets/Redirect.java
>
>
> This patch simply removes a + " " that a recent patch started appending to
> the prefix string. The " " was appended because the author
> wanted to place
> a space between the prefix and the subject. By default, whitespace is
> trimmed from body content of elements in the config.xml file, so simply
> putting a trailing space in config.xml didn't work. However, by simply
> adding xml:space="preserve", one can change that behavior.
>
> The following mailet provides a trivial example:
>
> <mailet match="RecipientIs=test@domain" class="Redirect">
> <recipients>user1@domain, user2@domain</recipients>
> <to>list@domain</to>
> <sender>owner@domain</sender>
> <message>sent on from James</message>
> <inline>unaltered</inline>
> <replyto>postmaster</replyto>
> <prefix xml:space="preserve">[test mailing] </prefix>
> <!-- ------- this ------- keeps this ^ -->
> <static>TRUE</static>
> <passThrough>FALSE</passThrough>
> </mailet>
>
> Note the use of the xml:space attribute on the <prefix> tag.
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: [PATCH] mailets/Redirect.java
Posted by Danny Angus <da...@apache.org>.
I take the general point but..
Why would you not _always_ want the space?
d.
> -----Original Message-----
> From: Noel J. Bergman [mailto:noel@devtech.com]
> Sent: 30 July 2002 21:37
> To: James-Dev Mailing List
> Subject: [PATCH] mailets/Redirect.java
>
>
> This patch simply removes a + " " that a recent patch started appending to
> the prefix string. The " " was appended because the author
> wanted to place
> a space between the prefix and the subject. By default, whitespace is
> trimmed from body content of elements in the config.xml file, so simply
> putting a trailing space in config.xml didn't work. However, by simply
> adding xml:space="preserve", one can change that behavior.
>
> The following mailet provides a trivial example:
>
> <mailet match="RecipientIs=test@domain" class="Redirect">
> <recipients>user1@domain, user2@domain</recipients>
> <to>list@domain</to>
> <sender>owner@domain</sender>
> <message>sent on from James</message>
> <inline>unaltered</inline>
> <replyto>postmaster</replyto>
> <prefix xml:space="preserve">[test mailing] </prefix>
> <!-- ------- this ------- keeps this ^ -->
> <static>TRUE</static>
> <passThrough>FALSE</passThrough>
> </mailet>
>
> Note the use of the xml:space attribute on the <prefix> tag.
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>