diff options
author | Vitaly Takmazov | 2017-12-27 09:52:41 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-12-27 09:56:23 +0300 |
commit | 8e157c7861d1b5e3a1687c9ff4ff570e00a1396d (patch) | |
tree | a63cc84adbb41bff66127290543ac30db87d62b1 /juick-api/src/main/java | |
parent | 5409e24f3a141482561a5ee025b62a685a060673 (diff) |
email: List-Unsubscribe
Diffstat (limited to 'juick-api/src/main/java')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/EmailManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
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<MessageEvent> { "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()); |