From 8e157c7861d1b5e3a1687c9ff4ff570e00a1396d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 27 Dec 2017 09:52:41 +0300 Subject: email: List-Unsubscribe --- juick-api/src/main/java/com/juick/api/EmailManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'juick-api') diff --git a/juick-api/src/main/java/com/juick/api/EmailManager.java b/juick-api/src/main/java/com/juick/api/EmailManager.java index 0093413e..2287d063 100644 --- a/juick-api/src/main/java/com/juick/api/EmailManager.java +++ b/juick-api/src/main/java/com/juick/api/EmailManager.java @@ -81,6 +81,7 @@ public class EmailManager implements ApplicationListener { "or discussion. Configure notifications at https://juick.com/settings?hash=%s", StringUtils.isNotEmpty(msg.getText()) ? formatPost(msg) : "", formatUrl(msg), userService.getHashByUID(userService.getUserByEmail(email).getUid()))); + message.setHeader("List-Unsubscribe", String.format("https://juick.com/settings?hash=%s", userService.getHashByUID(userService.getUserByEmail(email).getUid()))); message.saveChanges(); transport.connect(); transport.sendMessage(message, message.getAllRecipients()); -- cgit v1.2.3