summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw2007-09-29 15:10:52 -0400
committerBarry Warsaw2007-09-29 15:10:52 -0400
commite4803f3b4191ebab676d70231e82d34788be1772 (patch)
tree81cc1c414a9c8e747557a9c29ff3a11ea4814721
parent3e9ed398b6a05c69daca14c8226ca7f57c164c21 (diff)
downloadmailman-e4803f3b4191ebab676d70231e82d34788be1772.tar.gz
mailman-e4803f3b4191ebab676d70231e82d34788be1772.tar.zst
mailman-e4803f3b4191ebab676d70231e82d34788be1772.zip
-rw-r--r--Mailman/Defaults.py21
-rw-r--r--Mailman/Message.py4
-rw-r--r--Mailman/configuration.py4
-rw-r--r--Mailman/mm_cfg.py.dist.in44
4 files changed, 11 insertions, 62 deletions
diff --git a/Mailman/Defaults.py b/Mailman/Defaults.py
index 8e55057e6..90dddfa53 100644
--- a/Mailman/Defaults.py
+++ b/Mailman/Defaults.py
@@ -89,14 +89,6 @@ NO_REPLY_ADDRESS = 'noreply'
# a human.
SITE_OWNER_ADDRESS = 'changeme@example.com'
-# 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'
-
# Normally when a site administrator authenticates to a web page with the site
# password, they get a cookie which authorizes them as the list admin. It
# makes me nervous to hand out site auth cookies because if this cookie is
@@ -1342,12 +1334,13 @@ from Version import *
# element being the description, as described in the catalogs, and second
# element is the language charset. I have chosen code from /usr/share/locale
# in my GNU/Linux. :-)
-# TK: Now the site admin can select languages for the installation from
-# those in the distribution tarball. We don't touch add_language() function
-# for backward compatibility in mm_cfg.py syntax. You may have to add your
-# own language in mm_cfg.py if it is not included in the distribution even
-# if you had put language files in source directory and configured by
-# `--with-languages' option.
+#
+# TK: Now the site admin can select languages for the installation from those
+# in the distribution tarball. We don't touch add_language() function for
+# backward compatibility. You may have to add your own language in your
+# mailman.cfg file, if it is not included in the distribution even if you had
+# put language files in source directory and configured by `--with-languages'
+# option.
def _(s):
return s
diff --git a/Mailman/Message.py b/Mailman/Message.py
index e1b898ea4..7b1f22d8c 100644
--- a/Mailman/Message.py
+++ b/Mailman/Message.py
@@ -98,13 +98,13 @@ class Message(email.message.Message):
header value found is returned. However the search order is
determined by the following:
- - If mm_cfg.USE_ENVELOPE_SENDER is true, then the search order is
+ - If config.USE_ENVELOPE_SENDER is true, then the search order is
Sender:, From:, unixfrom
- Otherwise, the search order is From:, Sender:, unixfrom
The optional argument use_envelope, if given overrides the
- mm_cfg.USE_ENVELOPE_SENDER setting. It should be set to either 0 or 1
+ config.USE_ENVELOPE_SENDER setting. It should be set to either 0 or 1
(don't use None since that indicates no-override).
unixfrom should never be empty. The return address is always
diff --git a/Mailman/configuration.py b/Mailman/configuration.py
index b280dfce2..e4d8ac715 100644
--- a/Mailman/configuration.py
+++ b/Mailman/configuration.py
@@ -107,9 +107,9 @@ class Configuration(object):
sys.exit(-1)
# Based on values possibly set in mailman.cfg, add additional qrunners.
if ns['USE_MAILDIR']:
- self.add_qrunner('maildir')
+ self.add_qrunner('.maildir.MaildirRunner')
if ns['USE_LMTP']:
- self.add_qrunner('lmtp')
+ self.add_qrunner('.lmtp.LMTPRunner')
# Pull out the defaults.
VAR_DIR = os.path.abspath(ns['VAR_DIR'])
# Now that we've loaded all the configuration files we're going to
diff --git a/Mailman/mm_cfg.py.dist.in b/Mailman/mm_cfg.py.dist.in
deleted file mode 100644
index d6772dda5..000000000
--- a/Mailman/mm_cfg.py.dist.in
+++ /dev/null
@@ -1,44 +0,0 @@
-# -*- python -*-
-
-# Copyright (C) 1998-2007,1999,2000,2001,2002 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
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-"""This module contains your site-specific settings.
-
-From a brand new distribution it should be copied to mm_cfg.py. If you
-already have an mm_cfg.py, be careful to add in only the new settings you
-want. Mailman's installation procedure will never overwrite your mm_cfg.py
-file.
-
-The complete set of distributed defaults, with documentation, are in the file
-Defaults.py. In mm_cfg.py, override only those you want to change, after the
-
- from Defaults import *
-
-line (see below).
-
-Note that these are just default settings; many can be overridden via the
-administrator and user interfaces on a per-list or per-user basis.
-
-"""
-
-###############################################
-# Here's where we get the distributed defaults.
-
-from Defaults import *
-
-##################################################
-# Put YOUR site-specific settings below this line.