[Mailman-Users] 'Dynamic' footer

Mailman Admin mailman-admin at uni-konstanz.de
Thu Mar 13 16:21:34 CET 2014


Hello Rodti MacLeary

Am 2014-03-13 10:40, schrieb Rodti MacLeary:
> 
> I've trawled the archives and found a variety of questions asking how
> dynamic content might be added to Mailman message footers, but no real
> answers.
> 
> While I appreciate that the Mailman tags available to the footer can be
> useful for adding list admin info etc into the footer, it would be nice
> to be able to inject scripted or dynamic content in there.  Even if the
> footer could be persuaded to read a text file (like the other template
> files) then that text file could be updated.
> 
> If there's no current solution or workaround to this is it something
> that could be considered for Mailman 3?
> 

You could use
bin/config_list -i text_file.txt yourlist
for the corresponding list.
You would have to provide your text file in mailman config syntax to
this command.

So something like this in the text file text_file.txt would work:

msg_footer = """Some Text to put at the footer.
With multiple lines.
And with tags like %(host_name)s."""
digest_footer = """Some Text to put at the digest footer.
With multiple lines.
And with tags like %(host_name)s."""


This also works for headers.


Kind regards,
Christian Mack


More information about the Mailman-Users mailing list