mail icon indicating copy to clipboard operation
mail copied to clipboard

One Click Suggested Unsubscribe

Open ChildLearningClub opened this issue 4 years ago • 3 comments

Feature Request

Easily unsubscribe to promotion emails by grouping them into a list and allowing for simple one click unsubscribe.

Summary

Edison email as well as apparently CleanFox have a feature to quickly unsubscribe to newsletters and promotional emails.

ChildLearningClub avatar Jul 31 '21 22:07 ChildLearningClub

I assume they get that info from some headers? Would you have an example email where that quick unsubscribe is shown so we can inspect the header info?

ChristophWurst avatar Aug 09 '21 14:08 ChristophWurst

there is a list-unsubscribe header in most newsletters/mailing lists with a link to unsubscribe.

See RFC2369: https://datatracker.ietf.org/doc/html/rfc2369

philippstappert avatar Aug 10 '21 09:08 philippstappert

This is there in Gmail, Apple mail and Outlook so it sounds like a great idea! As for how it looks on the frontend, something like this could work: image

Screenshots for other email clients are at Penpot cc @jancborchardt also

nimishavijay avatar Mar 01 '22 13:03 nimishavijay

there is a list-unsubscribe header in most newsletters/mailing lists with a link to unsubscribe.

See RFC2369: https://datatracker.ietf.org/doc/html/rfc2369

From testing and articles like https://www.sendinblue.com/blog/list-unsubscribe-header/ I learned that it's not always just a link. It might also be a mailto: address. HTTP links are easy to handle, so I quickly built https://github.com/nextcloud/mail/pull/8395. Mailto is a bit trickier. We need to either

  1. Open the composer with the info from the mailto (like sender+subject prefilled)
  2. Submit the message to the outbox in the background
  3. Submit the message silently so it's neither shown in the outbox nor the Sent mailbox

ChristophWurst avatar Apr 20 '23 13:04 ChristophWurst

I think I'll go with 2) because it's good UX and not as much magic as 3) should there be a reply to the background message

ChristophWurst avatar Apr 20 '23 15:04 ChristophWurst

Submit the message to the outbox in the background

So the message will be seen in the Sent folder once it has been sent? That may lead to confusion since I'm assuming the contents of the mail would be fairly cryptic to an everyday user?

Also, since this is kind of a destructive action (once you unsubscribe from a mailing list it can be hard to subscribe again), there could be a confirmation dialogue Unsubscribing will stop all messages from the mailing list [name of mailing list] [Cancel tertiary button] [Unsubscribe primary button] Similar to Gmail (also cc @jancborchardt for wording here)

image

Also, interesting approach from Protonmail for messages which don't directly have an email for unsubscribing, but a link:

image

This is the message shown when there is an email.

image

Also, the mockup here conflicts with the the design in #8379 regarding showing the mail address in the message header. Suggestion: We show only the Unsubscribe button next to the mail address in the subline, without the "This message is from a mailing list" that is seen in the mockup here :)

nimishavijay avatar Apr 21 '23 10:04 nimishavijay

So the message will be seen in the Sent folder once it has been sent? That may lead to confusion since I'm assuming the contents of the mail would be fairly cryptic to an everyday user?

Not necessarily. It depends on the mailing list. Some just need a message with the subject "unsubscribe".

Even if the messages are slightly technical I would like my email client to be transparent about the messages sent. A message without traces is a bit meh.

ChristophWurst avatar Apr 21 '23 10:04 ChristophWurst

Even if the messages are slightly technical I would like my email client to be transparent about the messages sent. A message without traces is a bit meh.

That's a great point! I am sold, nice :)

nimishavijay avatar Apr 21 '23 11:04 nimishavijay

One-click HTTP unsubscribe in accordance to https://datatracker.ietf.org/doc/html/rfc8058 (requires security work due to cross origin requests)

Tested this quickly and indeed run into Content Security Policy: The page’s settings blocked the loading of a resource at [https://list-unsubscribe.e](https://list-unsubs…. This is not a problem for standalone email clients, of course. Moving to the server is also not an option as this would create blind SSRF.

ChristophWurst avatar Apr 27 '23 16:04 ChristophWurst

🎆 thank you everyone.

ChildLearningClub avatar May 05 '23 20:05 ChildLearningClub