aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/EmailManager.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-03-10 22:58:19 +0300
committerGravatar Vitaly Takmazov2020-03-10 23:17:32 +0300
commiteeb9da610d814b1b210366a456b3a0817d95a1af (patch)
treee3a0883a81bc2669fde48c5a156fa3d261ffec7d /src/main/java/com/juick/server/EmailManager.java
parent218b0d9c42a924385bac552ebfff8fb9ab321247 (diff)
mailto form of List-Unsubscribe header
Diffstat (limited to 'src/main/java/com/juick/server/EmailManager.java')
-rw-r--r--src/main/java/com/juick/server/EmailManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/juick/server/EmailManager.java b/src/main/java/com/juick/server/EmailManager.java
index 3939d706..768dd8de 100644
--- a/src/main/java/com/juick/server/EmailManager.java
+++ b/src/main/java/com/juick/server/EmailManager.java
@@ -185,8 +185,9 @@ public class EmailManager implements NotificationListener {
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",
+ String.format("<mailto:unsubscribe@juick.com>,<https://juick.com/settings/unsubscribe?hash=%s>",
+ userService.getHashByUID(emailUser.getUid())));
message.setHeader("List-Unsubscribe-Post", "List-Unsubscribe=One-Click");
}
message.saveChanges();