aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'juick-api/src/main/java/com/juick')
-rw-r--r--juick-api/src/main/java/com/juick/api/EmailManager.java1
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());