summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-12-02 13:57:21 +0000
committerbwarsaw2002-12-02 13:57:21 +0000
commit00edaf9ec777238b2bef59e1b74793bfcc23d32a (patch)
tree34ee94c1ffd5f32da337623e0089b435caeb0827
parentbd83e8a68614b67cba5b0a78c4000772c6c77020 (diff)
downloadmailman-00edaf9ec777238b2bef59e1b74793bfcc23d32a.tar.gz
mailman-00edaf9ec777238b2bef59e1b74793bfcc23d32a.tar.zst
mailman-00edaf9ec777238b2bef59e1b74793bfcc23d32a.zip
Set DEFAULT_HOST_NAME and DEFAULT_URL to None. That way, we can
determine if they've been overridden in mm_cfg.py and use the new variables DEFAULT_EMAIL_HOST and DEFAULT_URL_PATTERN % DEFAULT_URL_HOST if not. Also, fix a typo and set ARCHIVER_OBSCURES_EMAILADDRS to true by default.
-rw-r--r--Mailman/Defaults.py.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/Mailman/Defaults.py.in b/Mailman/Defaults.py.in
index 49a0977b1..e9c568fa3 100644
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
@@ -77,9 +77,11 @@ DEFAULT_EMAIL_HOST = '@MAILHOST@'
DEFAULT_URL_HOST = '@URLHOST@'
DEFAULT_URL_PATTERN = 'http://%s/mailman/'
-# For backwards compatibility. Note: DEFAULT_URL_PATTERN must end in a slash!
-DEFAULT_HOST_NAME = DEFAULT_EMAIL_HOST
-DEFAULT_URL = DEFAULT_URL_PATTERN % DEFAULT_URL_HOST
+# DEFAULT_HOST_NAME has been replaced with DEFAULT_EMAIL_HOST, however some
+# sites may have the former in their mm_cfg.py files. If so, we'll believe
+# that, otherwise we'll believe DEFAULT_EMAIL_HOST. Same for DEFAULT_URL.
+DEFAULT_HOST_NAME = None
+DEFAULT_URL = None
HOME_PAGE = 'index.html'
MAILMAN_SITE_LIST = 'mailman'
@@ -289,10 +291,10 @@ ARCHIVER_CLOBBER_DATE_POLICY = 2
ARCHIVER_ALLOWABLE_SANE_DATE_SKEW = days(15)
# Pipermail archives contain the raw email addresses of the posting authors.
-# Some view this as a goldmine for spam harvesters. Set this to false to
+# Some view this as a goldmine for spam harvesters. Set this to true to
# moderately obscure email addresses, but note that this breaks mailto: URLs
# in the archives too.
-ARCHIVER_OBSCURES_EMAILADDRS = 0
+ARCHIVER_OBSCURES_EMAILADDRS = 1
# Pipermail assumes that messages bodies contain US-ASCII text.
# Change this option to define a different character set to be used as