[Mailman-Users] Mailman digest headers

Mark Sapiro msapiro at value.net
Sun Aug 21 07:29:36 CEST 2005


Fred H Olson wrote:
>
>I wish the contents of masthead.txt (or similar) were the default in the
>digest header so it could be edited. Footers have default text, why not
>the digest_header ? Then if masthead.txt were eliminated, the default
>would result in digests looking the same.
>
>Is it possible to do this on a given installation now?  Is there a way to
>change the default contents (at a given installation) of a string option
>like digest_header ? If so, this change plus deleting the contents of
>masthead.txt would result in what I'd like to see.

Yes. The default digest header is set by the Defaults.py/mm_cfg.py
variable DEFAULT_DIGEST_HEADER. You could almost just put

DEFAULT_DIGEST_HEADER = """
Send %(real_name)s mailing list submissions to
	%(got_list_email)s

To subscribe or unsubscribe via the World Wide Web, visit
	%(got_listinfo_url)s
or, via email, send a message with subject or body 'help' to
	%(got_request_email)s

You can reach the person managing the list at
	%(got_owner_email)s

When replying, please edit your Subject line so it is more specific than
"Re: Contents of %(real_name)s digest..."
"""

in mm_cfg.py except that %(got_list_email)s, %(got_listinfo_url)s,
%(got_request_email)s and %(got_owner_email)s aren't valid
replacements in digest_header, but you could get around this with
things like

   %(real_name)s@%(host_name)s
   %(web_page_url)listinfo/%(list_name)s
   %(real_name)s-request@%(host_name)s
   %(real_name)s-owner@%(host_name)s

instead.

Then just make templates/site/en/masthead.txt an empty file and you're
set as long as all you're concerned about is English language lists.

--
Mark Sapiro <msapiro at value.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