diff options
author | Vitaly Takmazov | 2020-10-27 11:27:57 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-10-27 11:27:57 +0300 |
commit | 8bb36fc8b125d7ebf40d6432499197e95989b604 (patch) | |
tree | a55c93594351c6f525dd0b322acce78550f41685 /src | |
parent | 2223e6b85e4be0f4d0eda4000989ec0fe31002c9 (diff) |
Another try to fix List-Unsubscribe
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/juick/EmailManager.java | 11 |
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(); |