diff options
author | Vitaly Takmazov | 2018-09-27 12:17:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-09-27 12:17:05 +0300 |
commit | fc394e0d31e381afd6e88175b54d9ab8a4007e03 (patch) | |
tree | 3cce9d81a268d5d0ced0362231ba377debc275e3 | |
parent | 32869acec73653b6b62b35841845e9c732133571 (diff) |
RFC2919: List-Id
-rw-r--r-- | juick-server/src/main/java/com/juick/server/EmailManager.java | 1 |
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"); |