aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-28 12:28:15 +0300
committerGravatar Vitaly Takmazov2018-09-28 12:28:15 +0300
commit7366c3e536e329c3dba6edc82fb80bf7e271359f (patch)
tree80bbae123efd93902717d2500ef5869a3756ebb2 /juick-server/src/main/java/com
parent55d6d599d85c0a38ebb22f4c27039132f88f8b6a (diff)
RFC2369: List-Post, List-Owner, List-Archive
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r--juick-server/src/main/java/com/juick/server/EmailManager.java3
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");