Subject: The mailing list for listmasters using Sympa
List archive
Re: [en@sympa] Can't seem to set template variables in footer message / turn off moderation message?
- From: Erik Olson <address@concealed>
- To: address@concealed
- Subject: Re: [en@sympa] Can't seem to set template variables in footer message / turn off moderation message?
- Date: Fri, 16 May 2025 14:19:51 -0700
Hi folks,
I'm trying to customize the header or footer message to include
the original poster's e-mail or information about unsubscribing
from the list.
Edit List Config -> Edit list templates -> Edit Message footer.
Add in conent such as:
[% listname %]
Original poster: [% headers.item('x-original-from') %]
No variable expansion. I get that literal text added as the
footer. Is this a bug, or am I just doing this wrong? (I
realize x-original-from might not work anyway, in which case
I'll send a feature request later. But even [% listname %]
doesn't work.
I am guessing this is because the header and footer are not meant
to do this, i.e., they are not .tt2 files?
Maybe I will re-ask this question in a different way: We recently had to switch our community interactive mailing lists to rewrite the from line for ALL senders, not just yahoo and aol types. Too many messages were being classified as spam by gmail. I set the from style optimistically to "Joe Blow (address@concealed via My Mailing List) <address@concealed>". What I am finding is that the majority of mailers are now going out of their way to hide everything other than "Joe Blow", with some like iPhone providing seemingly no way of displaying the full From line.
What I'd like to do is have a line at the top of each post that says "Original Poster: Joe Blow <address@concealed>".
Is there any way to add this without reprogramming sympa itself?
Question #2: Is there a way to turn off the "your message has been sent to the moderator" notification sent to the poster in a moderated list? I have a list we'd like to put in a sort of stealth-moderation mode.
I think I was able to figure this out myself looking at the codebase and taking a wild stab. I copied the moderate scenario and added ",quiet" to any "editorkey" lines, i.e.:title.gettext Private, moderated for non subscribers, no moderation message
is_subscriber([listname],[sender]) smtp,md5,smime -> do_it
is_editor([listname],[sender]) smtp,md5,smime -> do_it
true() smtp,md5,smime -> editorkey,quiet
I hope I did that right. :)
- Erik
-
[en@sympa] Can't seem to set template variables in footer message / turn off moderation message?,
Erik Olson, 05/12/2025
- Re: [en@sympa] Can't seem to set template variables in footer message / turn off moderation message?, Erik Olson, 05/16/2025
Archive powered by MHonArc 2.6.19+.