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 <btell...@linagora.com>
Authored: Wed May 25 11:46:37 2016 +0700
Committer: Benoit Tellier <btell...@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-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to