A feature that exists in Gmail that I'd like to see in Roundcube is an "Unsubscribe" button. This button can be used to unsubscribe from mailing lists automatically. It simply uses the "List-Unsubscribe" header which contains a link (usually a mailto) that the recipient can visit (or send an email to) to unsubscribe from the list.
The button would only show if this List-Unsubscribe header is present in the message being viewed. For an example, I've attached a screenshot of Gmail's unsubscribe button. It's to the right of the sender's email address.
If this is a welcome addition, I can try implementing it, but I haven't contributed to Roundcube before so I might not be able to get it right.
Hi there,
I think its a good idea and here is how you might be able to implement it yourself, until officially its being added by the dev team.
In skins folder, find the template file which populate the area where you want to display the button and add html snippet for unsubscribe button. Also, search in the template the closest roundcube command or php variable and then search in program folder where its being handled or referenced and create new command to retrieve the unsubscribe URL. To learn how to fetch headers refer to:- https://github.com/roundcube/roundcubemail/blob/master/program/actions/mail/...
Good luck.
Zakaria.
On 2022-08-04 06:25, Kian Kasad wrote:
A feature that exists in Gmail that I'd like to see in Roundcube is an "Unsubscribe" button. This button can be used to unsubscribe from mailing lists automatically. It simply uses the "List-Unsubscribe" header which contains a link (usually a mailto) that the recipient can visit (or send an email to) to unsubscribe from the list.
The button would only show if this List-Unsubscribe header is present in the message being viewed. For an example, I've attached a screenshot of Gmail's unsubscribe button. It's to the right of the sender's email address.
If this is a welcome addition, I can try implementing it, but I haven't contributed to Roundcube before so I might not be able to get it right.
Roundcube Development discussion mailing list dev@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/dev
On 04.08.2022 08:25, Kian Kasad wrote:
A feature that exists in Gmail that I'd like to see in Roundcube is an "Unsubscribe" button. This button can be used to unsubscribe from mailing lists automatically. It simply uses the "List-Unsubscribe" header which contains a link (usually a mailto) that the recipient can visit (or send an email to) to unsubscribe from the list.
There's a plugin https://github.com/Takika/listcommands but I never used it.
On 2022-08-04 1:30, Aleksander Machniak wrote:
On 04.08.2022 08:25, Kian Kasad wrote:
A feature that exists in Gmail that I'd like to see in Roundcube is an "Unsubscribe" button. This button can be used to unsubscribe from mailing lists automatically. It simply uses the "List-Unsubscribe" header which contains a link (usually a mailto) that the recipient can visit (or send an email to) to unsubscribe from the list.
There's a plugin https://github.com/Takika/listcommands but I never used it.
That plugin has exactly what I was looking for. As such I won't be implementing the feature I described. Thanks!
Hello,
Kian Kasad wrote:
A feature that exists in Gmail that I'd like to see in Roundcube is an "Unsubscribe" button. This button can be used to unsubscribe from mailing lists automatically. It simply uses the "List-Unsubscribe" header which contains a link (usually a mailto) that the recipient can visit (or send an email to) to unsubscribe from the list.
K9 Mail has this too and it's very convenient. I also believe that Thunderbird has plans to bring it to their new overhauled headers UI.
In general I agree that it would be a nice feature to have in roundcube.
Kind regards Jonas