aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-27 12:17:05 +0300
committerGravatar Vitaly Takmazov2018-09-27 12:17:05 +0300
commitfc394e0d31e381afd6e88175b54d9ab8a4007e03 (patch)
tree3cce9d81a268d5d0ced0362231ba377debc275e3 /juick-server/src/main
parent32869acec73653b6b62b35841845e9c732133571 (diff)
RFC2919: List-Id
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/EmailManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/EmailManager.java b/juick-server/src/main/java/com/juick/server/EmailManager.java
index 67c21d1c..bcb6db25 100644
--- a/juick-server/src/main/java/com/juick/server/EmailManager.java
+++ b/juick-server/src/main/java/com/juick/server/EmailManager.java
@@ -123,6 +123,7 @@ public class EmailManager implements ApplicationListener<MessageEvent> {
message.setContent(multipart);
User emailUser = userService.getUserByEmail(to);
if (!emailUser.isAnonymous()) {
+ message.setHeader("List-Id", "Juick notifications <mail-notifications.juick.com>");
message.setHeader("List-Unsubscribe", String.format("https://juick.com/settings/unsubscribe?hash=%s",
userService.getHashByUID(emailUser.getUid())));
message.setHeader("List-Unsubscribe-Post", "List-Unsubscribe=One-Click");