Commit a1c73f6c authored by Barry Warsaw's avatar Barry Warsaw

Bite the bullet: rename the Mailman package to mailman.

parent 3f31f8cc
recursive-include Mailman/messages *.mo
# Copyright (C) 2001-2008 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.
......@@ -24,12 +24,12 @@ import logging
from email.MIMEMessage import MIMEMessage
from email.MIMEText import MIMEText
from Mailman import Defaults
from Mailman import Message
from Mailman import Utils
from Mailman import i18n
from Mailman.configuration import config
from Mailman.interfaces import DeliveryStatus
from mailman import Defaults
from mailman import Message
from mailman import Utils
from mailman import i18n
from mailman.configuration import config
from mailman.interfaces import DeliveryStatus
EMPTYSTRING = ''
......
......@@ -55,7 +55,7 @@ BOUNCE_PIPELINE = [
# msg must be a mimetools.Message
def ScanMessages(mlist, msg):
for module in BOUNCE_PIPELINE:
modname = 'Mailman.Bouncers.' + module
modname = 'mailman.Bouncers.' + module
__import__(modname)
addrs = sys.modules[modname].process(msg)
if addrs:
......
......@@ -25,7 +25,7 @@ from cStringIO import StringIO
from email.Iterators import typed_subpart_iterator
from email.Utils import parseaddr
from Mailman.Bouncers.BouncerAPI import Stop
from mailman.Bouncers.BouncerAPI import Stop
......
......@@ -17,9 +17,9 @@
"""Recognizes simple heuristically delimited warnings."""
from Mailman.Bouncers.BouncerAPI import Stop
from Mailman.Bouncers.SimpleMatch import _c
from Mailman.Bouncers.SimpleMatch import process as _process
from mailman.Bouncers.BouncerAPI import Stop
from mailman.Bouncers.SimpleMatch import _c
from mailman.Bouncers.SimpleMatch import process as _process
......
......@@ -21,10 +21,10 @@
supplied by a mailback confirmation notice.
"""
from Mailman import Errors
from Mailman import Pending
from Mailman.configuration import config
from Mailman.i18n import _
from mailman import Errors
from mailman import Pending
from mailman.configuration import config
from mailman.i18n import _
STOP = 1
......
......@@ -20,7 +20,7 @@
adds a signature file.
"""
from Mailman.i18n import _
from mailman.i18n import _
......
......@@ -22,9 +22,9 @@
import os
import sys
from Mailman import Utils
from Mailman.configuration import config
from Mailman.i18n import _
from mailman import Utils
from mailman.configuration import config
from mailman.i18n import _
EMPTYSTRING = ''
......@@ -53,13 +53,13 @@ def process(res, args):
break
# build the specific command helps from the module docstrings
modhelps = {}
import Mailman.Commands
path = os.path.dirname(os.path.abspath(Mailman.Commands.__file__))
import mailman.Commands
path = os.path.dirname(os.path.abspath(mailman.Commands.__file__))
for file in os.listdir(path):
if not file.startswith('cmd_') or not file.endswith('.py'):
continue
module = os.path.splitext(file)[0]
modname = 'Mailman.Commands.' + module
modname = 'mailman.Commands.' + module
try:
__import__(modname)
except ImportError:
......
......@@ -19,7 +19,7 @@
Get information about this mailing list.
"""
from Mailman.i18n import _
from mailman.i18n import _
STOP = 1
......
......@@ -17,4 +17,4 @@
"""The `join' command is synonymous with `subscribe'.
"""
from Mailman.Commands.cmd_subscribe import process
from mailman.Commands.cmd_subscribe import process
......@@ -17,4 +17,4 @@
"""The `leave' command is synonymous with `unsubscribe'.
"""
from Mailman.Commands.cmd_unsubscribe import process
from mailman.Commands.cmd_unsubscribe import process
......@@ -20,9 +20,9 @@
See a list of the public mailing lists on this GNU Mailman server.
"""
from Mailman.MailList import MailList
from Mailman.configuration import config
from Mailman.i18n import _
from mailman.MailList import MailList
from mailman.configuration import config
from mailman.i18n import _
STOP = 1
......
......@@ -28,8 +28,8 @@
from email.Utils import parseaddr
from Mailman.configuration import config
from Mailman.i18n import _
from mailman.configuration import config
from mailman.i18n import _
STOP = 1
......
......@@ -17,4 +17,4 @@
"""The `remove' command is synonymous with `unsubscribe'.
"""
from Mailman.Commands.cmd_unsubscribe import process
from mailman.Commands.cmd_unsubscribe import process
......@@ -17,10 +17,10 @@
from email.Utils import parseaddr, formatdate
from Mailman import Errors
from Mailman import MemberAdaptor
from Mailman import i18n
from Mailman.configuration import config
from mailman import Errors
from mailman import MemberAdaptor
from mailman import i18n
from mailman.configuration import config
def _(s): return s
......
......@@ -17,4 +17,4 @@
"""stop is synonymous with the end command.
"""
from Mailman.Commands.cmd_end import process
from mailman.Commands.cmd_end import process
......@@ -30,10 +30,10 @@
from email.Utils import parseaddr
from email.Header import decode_header, make_header
from Mailman import Utils
from Mailman import Errors
from Mailman.UserDesc import UserDesc
from Mailman.i18n import _
from mailman import Utils
from mailman import Errors
from mailman.UserDesc import UserDesc
from mailman.i18n import _
STOP = 1
......
......@@ -26,8 +26,8 @@
from email.Utils import parseaddr
from Mailman import Errors
from Mailman.i18n import _
from mailman import Errors
from mailman.i18n import _
STOP = 1
......
......@@ -17,8 +17,8 @@
from email.Utils import parseaddr
from Mailman import i18n
from Mailman.configuration import config
from mailman import i18n
from mailman.configuration import config
STOP = 1
......
......@@ -19,7 +19,7 @@
from datetime import timedelta
from Mailman.interfaces import ReplyToMunging
from mailman.interfaces import ReplyToMunging
......@@ -61,7 +61,7 @@ No = no = Off = off = False
# shortcut "favicon"). Otherwise, this should contain the URL base path to
# the logo images (and must contain the trailing slash).. If you want to
# disable Mailman's logo footer altogther, hack
# Mailman/htmlformat.py:MailmanLogo(), which also contains the hardcoded links
# mailman/htmlformat.py:MailmanLogo(), which also contains the hardcoded links
# and image names.
IMAGE_LOGOS = '/icons/'
......@@ -273,9 +273,9 @@ PRIVATE_EXTERNAL_ARCHIVER = No
# a MailList object and a Message object. It should raise
# Errors.DiscardMessage if it wants to throw the message away. Otherwise it
# should modify the Message object as necessary.
ARCHIVE_SCRUBBER = 'Mailman.Handlers.Scrubber'
ARCHIVE_SCRUBBER = 'mailman.Handlers.Scrubber'
# Control parameter whether Mailman.Handlers.Scrubber should use message
# Control parameter whether mailman.Handlers.Scrubber should use message
# attachment's filename as is indicated by the filename parameter or use
# 'attachement-xxx' instead. The default is set True because the applications
# on PC and Mac begin to use longer non-ascii filenames. Historically, it
......@@ -375,7 +375,7 @@ PUBLIC_MBOX = No
# must be a string naming an IHandler.
DELIVERY_MODULE = 'smtp-direct'
# MTA should name a module in Mailman/MTA which provides the MTA specific
# MTA should name a module in mailman/MTA which provides the MTA specific
# functionality for creating and removing lists. Some MTAs like Exim can be
# configured to automatically recognize new lists, in which case the MTA
# variable should be set to None. Use 'Manual' to print new aliases to
......@@ -456,7 +456,7 @@ DEFAULT_NNTP_HOST = u''
# accepted by your NNTP server. Some servers like INN reject messages
# containing prohibited headers, or duplicate headers. The NNTP server may
# reject the message for other reasons, but there's little that can be
# programmatically done about that. See Mailman/Queue/NewsRunner.py
# programmatically done about that. See mailman/Queue/NewsRunner.py
#
# First, these headers (case ignored) are removed from the original message.
NNTP_REMOVE_HEADERS = ['nntp-posting-host', 'nntp-posting-date', 'x-trace',
......
......@@ -25,11 +25,11 @@ import logging
from email.MIMEMessage import MIMEMessage
from email.MIMEText import MIMEText
from Mailman import Errors
from Mailman import Message
from Mailman import Utils
from Mailman import i18n
from Mailman.configuration import config
from mailman import Errors
from mailman import Message
from mailman import Utils
from mailman import i18n
from mailman.configuration import config
_ = i18n._
......@@ -123,7 +123,7 @@ action by you is required.""")))
# Now send a notice to the invitee list
try:
# Avoid import loops
from Mailman.MailList import MailList
from mailman.MailList import MailList
mlist = MailList(listname, lock=False)
except Errors.MMListError:
# Oh well
......
......@@ -21,11 +21,11 @@
import os
import errno
from Mailman import Errors
from Mailman import Utils
from Mailman.Handlers import ToDigest
from Mailman.configuration import config
from Mailman.i18n import _
from mailman import Errors
from mailman import Utils
from mailman.Handlers import ToDigest
from mailman.configuration import config
from mailman.i18n import _
......
......@@ -20,12 +20,12 @@
import re
import time
from Mailman import Defaults
from Mailman import MemberAdaptor
from Mailman import Utils
from Mailman.configuration import config
from Mailman.htmlformat import *
from Mailman.i18n import _
from mailman import Defaults
from mailman import MemberAdaptor
from mailman import Utils
from mailman.configuration import config
from mailman.htmlformat import *
from mailman.i18n import _
EMPTYSTRING = ''
......
......@@ -22,12 +22,12 @@ import email.Utils
from cStringIO import StringIO
from Mailman import Message
from Mailman import Utils
from Mailman.MTA.Utils import makealiases
from Mailman.configuration import config
from Mailman.i18n import _
from Mailman.queue import Switchboard
from mailman import Message
from mailman import Utils
from mailman.MTA.Utils import makealiases
from mailman.configuration import config
from mailman.i18n import _
from mailman.queue import Switchboard
......
......@@ -29,10 +29,10 @@ import logging
from locknix.lockfile import Lock
from stat import *
from Mailman import Utils
from Mailman.MTA.Utils import makealiases
from Mailman.configuration import config
from Mailman.i18n import _
from mailman import Utils
from mailman.MTA.Utils import makealiases
from mailman.configuration import config
from mailman.i18n import _
LOCKFILE = os.path.join(config.LOCK_DIR, 'creator')
ALIASFILE = os.path.join(config.DATA_DIR, 'aliases')
......
......@@ -20,7 +20,7 @@
import os
import pwd
from Mailman.configuration import config
from mailman.configuration import config
......