[Mailman-Users] How to put date & sequence in body?

Adam McGreggor adam-mailman at amyl.org.uk
Tue May 25 21:09:31 CEST 2010


On Tue, May 25, 2010 at 11:55:32AM -0700, Robert Khachikyan wrote:
> How can I prepend the body of each email with say:
> ******************************************************************************
> DOJO Email Report   23 Feb 10:49:06 PST 2010      Message Number 18316
> ******************************************************************************

The only way I can think of doing this is to generate a header file
periodically, and pass the contents of the generated file to
config_list as a "msg_header" setting

As for the message number, I'm not too sure how to go about with this:
I can't think of a canonical way to do that; unless 

either
    *   all posts are moderated, and you generate the message
        number from the list's mbox.
    *   that new posts don't happen between runs of $generating
        script
or
unless your MTA writes something at SMTP time building the message
number, or if you increment after delivery.

I think I would use something at SMTP time, were this me. 

Quite why I'd create a "Message Number", when there should be a
Message-Id: header, I'm unsure of.

-- 
The trouble with the rat race is that, even if you win, you're still a rat


More information about the Mailman-Users mailing list