I got a request from a user that seemed to make sense: removing unnecessary
email headers at the top of each message in a digest. So I googled it, but
before implementing it wanted to make sure it was correct and wouldn't
cause other issues by presenting it here for comment.

The fields of each collected message that seem appropriate for removal
would be the "To:" line, since that is in the digest header, the
Message-ID: line since that means nothing to the end user, and the
Content-Type as that probably means nothing to the end user.

That would leave intact the Date, From, and Subject lines.

So here's the solution I found by googling (would it work or is better
way?), and commenting out lines to keep:

main config is loaded is Defaults.py
above it mm_cfg.py config loaded
edit
sudo nano /etc/mailman/mm_cfg.py
with adding in the end:


# removing frustrating headers, 2016 06 04 by OG2K
#
PLAIN_DIGEST_KEEP_HEADERS.remove('Message')
PLAIN_DIGEST_KEEP_HEADERS.remove('Date')
PLAIN_DIGEST_KEEP_HEADERS.remove('From')
PLAIN_DIGEST_KEEP_HEADERS.remove('To')
PLAIN_DIGEST_KEEP_HEADERS.remove('Cc')
PLAIN_DIGEST_KEEP_HEADERS.remove('Subject')
PLAIN_DIGEST_KEEP_HEADERS.remove('Message-ID')
PLAIN_DIGEST_KEEP_HEADERS.remove('Keywords')
PLAIN_DIGEST_KEEP_HEADERS.remove('Content-Type')
------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to