diff options
author | Vitaly Takmazov | 2018-09-28 12:28:15 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-09-28 12:28:15 +0300 |
commit | 7366c3e536e329c3dba6edc82fb80bf7e271359f (patch) | |
tree | 80bbae123efd93902717d2500ef5869a3756ebb2 | |
parent | 55d6d599d85c0a38ebb22f4c27039132f88f8b6a (diff) |
RFC2369: List-Post, List-Owner, List-Archive
-rw-r--r-- | juick-server/src/main/java/com/juick/server/EmailManager.java | 3 |
1 files changed, 3 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 bcb6db25..0acabeff 100644 --- a/juick-server/src/main/java/com/juick/server/EmailManager.java +++ b/juick-server/src/main/java/com/juick/server/EmailManager.java @@ -124,6 +124,9 @@ public class EmailManager implements ApplicationListener<MessageEvent> { User emailUser = userService.getUserByEmail(to); if (!emailUser.isAnonymous()) { message.setHeader("List-Id", "Juick notifications <mail-notifications.juick.com>"); + message.setHeader("List-Post", "<mailto:juick@juick.com>"); + message.setHeader("List-Owner", "<mailto:support@juick.com>"); + message.setHeader("List-Archive", "<https://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"); |