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 hi...@apache.org on 2004/05/05 12:34:53 UTC
cvs commit: james-server/src/xdocs provided_mailets_2_1.xml
hilmer 2004/05/05 03:34:53
Modified: src/java/org/apache/james/transport/mailets Tag:
branch_2_1_fcs AbstractNotify.java
src/xdocs Tag: branch_2_1_fcs provided_mailets_2_1.xml
Added: src/java/org/apache/james/transport/mailets Tag:
branch_2_1_fcs DSNBounce.java
Log:
PR: James-279
Submitted by: Andreas G�ggerle
Reviewed by: S�ren Hilmer
DSNBounce added. Possible NullPointerException in AbtractNotify resolved.
Added description of DSNBounce to provided_mailets.
Revision Changes Path
No revision
No revision
1.1.2.12 +2 -2 james-server/src/java/org/apache/james/transport/mailets/AbstractNotify.java
Index: AbstractNotify.java
===================================================================
RCS file: /home/cvs/james-server/src/java/org/apache/james/transport/mailets/AbstractNotify.java,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -r1.1.2.11 -r1.1.2.12
--- AbstractNotify.java 15 Mar 2004 03:54:19 -0000 1.1.2.11
+++ AbstractNotify.java 5 May 2004 10:34:53 -0000 1.1.2.12
@@ -284,7 +284,7 @@
if (subject == null) {
subject = "";
}
- if (subject.indexOf(subjectPrefix) == 0) {
+ if (subjectPrefix==null || subject.indexOf(subjectPrefix) == 0) {
newMail.getMessage().setSubject(subject);
} else {
newMail.getMessage().setSubject(subjectPrefix + subject);
No revision
Index: AbstractNotify.java
===================================================================
RCS file: /home/cvs/james-server/src/java/org/apache/james/transport/mailets/AbstractNotify.java,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -r1.1.2.11 -r1.1.2.12
--- AbstractNotify.java 15 Mar 2004 03:54:19 -0000 1.1.2.11
+++ AbstractNotify.java 5 May 2004 10:34:53 -0000 1.1.2.12
@@ -284,7 +284,7 @@
if (subject == null) {
subject = "";
}
- if (subject.indexOf(subjectPrefix) == 0) {
+ if (subjectPrefix==null || subject.indexOf(subjectPrefix) == 0) {
newMail.getMessage().setSubject(subject);
} else {
newMail.getMessage().setSubject(subjectPrefix + subject);
No revision
Index: AbstractNotify.java
===================================================================
RCS file: /home/cvs/james-server/src/java/org/apache/james/transport/mailets/AbstractNotify.java,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -r1.1.2.11 -r1.1.2.12
--- AbstractNotify.java 15 Mar 2004 03:54:19 -0000 1.1.2.11
+++ AbstractNotify.java 5 May 2004 10:34:53 -0000 1.1.2.12
@@ -284,7 +284,7 @@
if (subject == null) {
subject = "";
}
- if (subject.indexOf(subjectPrefix) == 0) {
+ if (subjectPrefix==null || subject.indexOf(subjectPrefix) == 0) {
newMail.getMessage().setSubject(subject);
} else {
newMail.getMessage().setSubject(subjectPrefix + subject);
1.1.2.1 +973 -0 james-server/src/java/org/apache/james/transport/mailets/Attic/DSNBounce.java
No revision
No revision
1.5.4.10 +23 -0 james-server/src/xdocs/provided_mailets_2_1.xml
Index: provided_mailets_2_1.xml
===================================================================
RCS file: /home/cvs/james-server/src/xdocs/provided_mailets_2_1.xml,v
retrieving revision 1.5.4.9
retrieving revision 1.5.4.10
diff -u -r1.5.4.9 -r1.5.4.10
--- provided_mailets_2_1.xml 7 Apr 2004 18:43:36 -0000 1.5.4.9
+++ provided_mailets_2_1.xml 5 May 2004 10:34:53 -0000 1.5.4.10
@@ -69,6 +69,29 @@
</ul>
</p>
</subsection>
+<subsection name="DSNBounce">
+<p>Sends Delivery Status Notification messages as described in
+RFC-3464.
+Usually used in concert with a bounceProcessor parameter on Remotedelivery, as
+RemoteDelivery sets the needed information (delivery-error attribute)
+on the failed mail prior to letting the mail be processed by the configured
+bounceProcessor. DSNBounce would then be configured into this
+bounceProcessor so it can process the original mail and send the
+notification. NOTE: at this time only error-bounces can be done.</p>
+<p>Parameters:
+<ul>
+<li><strong>sender</strong> (optional) - an address or postmaster or
+sender or unaltered, default=postmaster.</li>
+<li><strong>prefix</strong> (optional) - subject prefix prepended to
+the original message</li>
+<li><strong>attachment</strong> (optional) - message or none, default=message</li>
+<li><strong>messageString</strong> (optional) - the message sent in the bounce, the first occurrence of the pattern [machine] is replaced with the name of the executing machine, default=Hi. This is the James mail server at [machine] ... </li>
+<li><strong>passThrough</strong> (optional) - true or false, default=true </li>
+<li><strong>debug</strong> (optional) - a boolean value (true/false)
+indicating whether debugging is on. Defaults to false.</li>
+</ul>
+</p>
+</subsection>
<subsection name="Forward">
<p>Description: This mailet forwards the message to a set of recipients.</p>
<p>Parameters:
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org