[Mailman-Users] Headers

Dan Phillips dan at music.memphis.edu
Fri Apr 28 17:42:04 CEST 2006


On Apr 28, 2006, at 10:32 AM, Louis M. wrote:
> I apologize if this has been asked before, but I have googled day  
> in and day
> out so, if you could point me in the right direction:
>
> All digests include the email information for each email such as:
>
> 	Message: 1
> 	Date: Tue, 25 Apr 2006 09:57:37 -0400
> 	From: Apache <apache at domain.com>
> 	Subject: Status- Client, Demo
> 	To: status_change at domain.com
> 	Message-ID: <200604251357.k3PDvbVl016819 at domain.com>
>
> We are using our lists in an automated method, therefore it will  
> always be
> generated from an automated source so this information is  
> irrelevant and
> over the course of a digest with 200+ emails it adds up to be alot of
> unnecessary overhead.
>
> Where can I go to remove it. Even if it is a global change. I was  
> poking
> around in the Handlers Directory, but am not sure if there is a  
> better place
> to do this.


 From Mailman/Defaults.py:

> # Headers which should be kept in both RFC 1153 (plain) and MIME  
> digests.  RFC
> # 1153 also specifies these headers in this exact order, so order  
> matters.
> MIME_DIGEST_KEEP_HEADERS = [
>     'Date', 'From', 'To', 'Cc', 'Subject', 'Message-ID', 'Keywords',
>     # I believe we should also keep these headers though.
>     'In-Reply-To', 'References', 'Content-Type', 'MIME-Version',
>     'Content-Transfer-Encoding', 'Precedence', 'Reply-To',
>     # Mailman 2.0 adds these headers
>     'Message',
>     ]
>
> PLAIN_DIGEST_KEEP_HEADERS = [
>     'Message', 'Date', 'From',
>     'Subject', 'To', 'Cc',
>     'Message-ID', 'Keywords',
>     'Content-Type',
>     ]

Copy this information into mm_cfg.py and make the changes there to  
eliminate unwanted fields.

Dan

====================
Dan Phillips
Associate Professor
Rudi E. Scheidt School of Music
University of Memphis
dan at music.memphis.edu






More information about the Mailman-Users mailing list