activity icon indicating copy to clipboard operation
activity copied to clipboard

Activity E-Mail has no unsubscribe information leading to spam trap and blacklisting risks

Open lpoujoulat opened this issue 5 years ago • 1 comments

Hello Guys,

we had some trouble with the mail sent by Activity on some events, like administrators broadcasts: a very large number of e-mails is emitted and regularly, some ISP detect them has spam or some user mark them has spam not knowing how to stop them. This leads to some risks of blacklisting of our servers.

The activity E-mails should include a text in the footer saying for instance "Choose how to be notified" and pointing back to https:///settings/user/activity

The mail should also include a List-Unsubscribe header pointing at the same location.

This would solve the issue and make the mail more MTA/Clients friendly

Best regards

lpoujoulat avatar Aug 22 '20 15:08 lpoujoulat

I guess we could do it exactly the same as the Notifications app does:

https://github.com/nextcloud/notifications/blob/658e4dce745432b6372e1dbdb1f15e174758974e/lib/MailNotifications.php#L298-L303

It would go right around here:

https://github.com/nextcloud/activity/blob/3b40547bed28c97b30cff383879c84d32a52a4ad/lib/MailQueueHandler.php#L332

Though I wonder if maybe we should really handle at least part of this in Server, by adjusting the addFooter():

https://github.com/nextcloud/server/blob/609fa7d5db69c7724ad42615e2146bef4f714c76/lib/private/Mail/EMailTemplate.php#L581-L586

joshtrichards avatar Aug 07 '24 19:08 joshtrichards