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 no...@apache.org on 2004/02/06 01:55:25 UTC
cvs commit: james-server/src/java/org/apache/james/transport/mailets FromRepository.java
noel 2004/02/05 16:55:25
Modified: src/java/org/apache/james/transport/mailets Tag:
branch_2_1_fcs FromRepository.java
Log:
1. Correct handling of boolean parameter
2. Add "FromRepository" mail attribute to make it easy to detect messages that have been spool from a repository. THIS IS AN EXPERIMENTAL CHANGE. Both the attribute name and the value should probably change. Possibly the latter should be a URI for the repository or the message.
Revision Changes Path
No revision
No revision
1.1.2.2 +3 -2 james-server/src/java/org/apache/james/transport/mailets/Attic/FromRepository.java
Index: FromRepository.java
===================================================================
RCS file: /home/cvs/james-server/src/java/org/apache/james/transport/mailets/Attic/FromRepository.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- FromRepository.java 24 Sep 2003 16:11:39 -0000 1.1.2.1
+++ FromRepository.java 6 Feb 2004 00:55:25 -0000 1.1.2.2
@@ -106,7 +106,7 @@
public void init() {
repositoryPath = getInitParameter("repositoryPath");
try {
- delete = new Boolean(getInitParameter("delete")).booleanValue();
+ delete = (getInitParameter("delete") == null) ? true : new Boolean(getInitParameter("delete")).booleanValue();
} catch (Exception e) {
// Ignore exception, default to true
}
@@ -154,6 +154,7 @@
};
*/
+ mail.setAttribute("FromRepository", Boolean.TRUE);
getMailetContext().sendMail(mail);
if (delete) processed.add(key);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org