[Mailman-Users] Changing values at header/footer

Mark Sapiro mark at msapiro.net
Fri Jan 23 19:48:11 CET 2015

On 01/22/2015 08:47 AM, Edgardo Sandoval wrote:
> Hello everibody,
> This is my first list that I am setting and I wonder if I could add to my footer/header a small line like for example:
> Message Ref.: #123456789   Date: 22/01/2015 17:10
> I was searching to get a list of command in Python, like the original footer, but no good results:
> %(real_name)s mailing list%(real_name)s@%(host_name)s%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s Thanks a lot from Argentina!Best regards,Edgardo

I'm not sure what you mean by Message Ref.:, but the value of this is
probably not available and neither is the date. If you follow the
'(Details for msg_footer)' link on the list admin Non-digest options
page, you will see what substitutions are available for msg_footer (and
also msg_header).

If you have access to the underlying software and Python skills, one way
to do this is to add a custom handler (see
<http://wiki.list.org/x/l4A9>) in the pipeline ahead of ToOutgoing which
will create or augment a msgdata.decoration-data dictionary to include
key:value replacements for things like the date/time and maybe Message
Ref., but if you intend Message Ref. to refer to the archived message in
some way, it is not possible to do this because archiving and delivery
are asynchronous processes and the message delivery process can't
determine anything about the ultimate location of a message in the archive.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list