summaryrefslogtreecommitdiff
path: root/Mailman/Defaults.py.in
diff options
context:
space:
mode:
authorbwarsaw2003-01-24 00:00:19 +0000
committerbwarsaw2003-01-24 00:00:19 +0000
commit113cee6edbe577e730a2d0d41e79017c7e23d1a4 (patch)
treeaf143dd7c192680b01fb3947a53a8add5d048e58 /Mailman/Defaults.py.in
parent6f00723ce3d7055d295ffe96e4b51ef7e39874a3 (diff)
downloadmailman-113cee6edbe577e730a2d0d41e79017c7e23d1a4.tar.gz
mailman-113cee6edbe577e730a2d0d41e79017c7e23d1a4.tar.zst
mailman-113cee6edbe577e730a2d0d41e79017c7e23d1a4.zip
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).
Diffstat (limited to 'Mailman/Defaults.py.in')
-rw-r--r--Mailman/Defaults.py.in23
1 files 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',
+ ]