Skip to Content.
Sympa Menu

en - Re: [en@sympa] Issue with template for unsubscribe link

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Gingko <address@concealed>
  • To: address@concealed
  • Subject: Re: [en@sympa] Issue with template for unsubscribe link
  • Date: Wed, 11 Dec 2024 09:23:12 +0100

Hello,

Thank you very much, it works.

But now I just realize that there is a trickier issue:

The URL is not clickable in HTML messages.

Of course, I suppose I could do it that way:
<a href=""[%" wwsympa_url %]/auto_signoff/[% listname %]?email=[% user.email | uri %]">[% wwsympa_url %]/auto_signoff/[% listname %]?email=[% user.email | uri %]</a>
… but actually, messages could be sent with text/plain or with text/html mime types, and even, frequently, as multipart/alternative with subparts having both the former mime types inside.

Actually, multipart/alternative messages have this footer included in both subparts.

And of course, the above syntax would look very weird in plain text messages.

Paradoxically, the URL is actually clickable in some of my messages, but only in messages received as text/plain.
This is because Mozilla Thunderbird (which I use, as you may have guessed) adds this link itself when it detects URLs in plain text messages.

Is there a way to have a plain text footer in text/plain messages or subparts, and a HTML footer in text/html messages or subparts?

Regards,

Gingko

De : Adam Bernstein [mailto:address@concealed]
Envoyé : lundi 9 décembre 2024 à 9:51 PM
Pour : address@concealed Objet : [en@sympa] Issue with template for unsubscribe link

Ah yes, that is a bug with the handling of virtual domains:

  https://github.com/sympa-community/sympa/issues/321

You'll need to use this syntax for the link instead (see final comment):

  [% wwsympa_url %]/auto_signoff/[% listname %]?email=[% user.email | uri %]

    adam





Archive powered by MHonArc 2.6.19+.

Top of Page