aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/EmailManager.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-27 11:27:57 +0300
committerGravatar Vitaly Takmazov2020-10-27 11:27:57 +0300
commit8bb36fc8b125d7ebf40d6432499197e95989b604 (patch)
treea55c93594351c6f525dd0b322acce78550f41685 /src/main/java/com/juick/EmailManager.java
parent2223e6b85e4be0f4d0eda4000989ec0fe31002c9 (diff)
Another try to fix List-Unsubscribe
Diffstat (limited to 'src/main/java/com/juick/EmailManager.java')
-rw-r--r--src/main/java/com/juick/EmailManager.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main/java/com/juick/EmailManager.java b/src/main/java/com/juick/EmailManager.java
index f3b0e85b..4ec65c8f 100644
--- a/src/main/java/com/juick/EmailManager.java
+++ b/src/main/java/com/juick/EmailManager.java
@@ -178,14 +178,9 @@ public class EmailManager implements NotificationListener {
message.setContent(multipart);
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("<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.setHeader("List-Id", "<mail-notifications.juick.com>");
+ message.setHeader("List-Unsubscribe","<mailto:unsubscribe@juick.com>");
+ message.setHeader("Feedback-ID", String.format("%d:juick", emailUser.getUid()));
}
message.saveChanges();
transport.connect();