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 bt...@apache.org on 2016/05/27 11:05:48 UTC
[11/11] james-project git commit: JAMES-1717 Mail sent by the
vacation mailet should be marked as Auto-Submitted with auto-replied .
JAMES-1717 Mail sent by the vacation mailet should be marked as Auto-Submitted with auto-replied .
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/13f3028b
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/13f3028b
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/13f3028b
Branch: refs/heads/master
Commit: 13f3028b9935d57b4d752396c5bea024dfb53571
Parents: a05bcee
Author: Benoit Tellier <bt...@linagora.com>
Authored: Wed May 25 11:46:37 2016 +0700
Committer: Benoit Tellier <bt...@linagora.com>
Committed: Fri May 27 18:03:33 2016 +0700
----------------------------------------------------------------------
.../src/main/java/org/apache/james/jmap/mailet/VacationReply.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/13f3028b/server/protocols/jmap/src/main/java/org/apache/james/jmap/mailet/VacationReply.java
----------------------------------------------------------------------
diff --git a/server/protocols/jmap/src/main/java/org/apache/james/jmap/mailet/VacationReply.java b/server/protocols/jmap/src/main/java/org/apache/james/jmap/mailet/VacationReply.java
index 222644a..0638eb6 100644
--- a/server/protocols/jmap/src/main/java/org/apache/james/jmap/mailet/VacationReply.java
+++ b/server/protocols/jmap/src/main/java/org/apache/james/jmap/mailet/VacationReply.java
@@ -29,7 +29,6 @@ import org.apache.mailet.Mail;
import org.apache.mailet.MailAddress;
import com.github.fge.lambdas.Throwing;
-import com.github.fge.lambdas.consumers.ThrowingConsumer;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
@@ -82,6 +81,7 @@ public class VacationReply {
reply.setText(reason);
reply.setHeader("from", mailRecipient.toString());
reply.setHeader("to", originalMail.getSender().toString());
+ reply.setHeader("Auto-Submitted", "auto-replied");
return reply;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org