From 113cee6edbe577e730a2d0d41e79017c7e23d1a4 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Fri, 24 Jan 2003 00:00:19 +0000 Subject: DEFAULT_PLAIN_DIGEST_KEEP_HEADERS: This wasn't actually used anywhere, so I've renamed it to PLAIN_DIGEST_KEEP_HEADERS. MIME_DIGEST_KEEP_HEADERS: Added this for use in ToDigest.py -- it's essentially a copy of the KEEP module global from that module (which will be removed). --- Mailman/Defaults.py.in | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in index a9d11f633..4286e4688 100644 --- a/Mailman/Defaults.py.in +++ b/Mailman/Defaults.py.in @@ -1,6 +1,6 @@ # -*- python -*- -# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2003 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -939,9 +939,24 @@ DEFAULT_DIGEST_IS_DEFAULT = 0 DEFAULT_MIME_IS_DEFAULT_DIGEST = 0 DEFAULT_DIGEST_SIZE_THRESHHOLD = 30 # KB DEFAULT_DIGEST_SEND_PERIODIC = 1 -DEFAULT_PLAIN_DIGEST_KEEP_HEADERS = ['message', 'date', 'from', - 'subject', 'to', 'cc', - 'reply-to', 'organization'] + +# 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', + ] -- cgit v1.2.3-70-g09d2