diff options
| author | bwarsaw | 2006-07-08 17:37:55 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-07-08 17:37:55 +0000 |
| commit | cbef3114de3e80b9436d909b11568858e3a1cf42 (patch) | |
| tree | f567fe3fbc331fe399b92e93f80068e8995a7821 /Mailman/Message.py | |
| parent | 60b723291e592ff7925e1b15b79161d1cdac5938 (diff) | |
| download | mailman-cbef3114de3e80b9436d909b11568858e3a1cf42.tar.gz mailman-cbef3114de3e80b9436d909b11568858e3a1cf42.tar.zst mailman-cbef3114de3e80b9436d909b11568858e3a1cf42.zip | |
Diffstat (limited to 'Mailman/Message.py')
| -rw-r--r-- | Mailman/Message.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py index 7216d7c9a..b39bcb3fe 100644 --- a/Mailman/Message.py +++ b/Mailman/Message.py @@ -29,8 +29,8 @@ import email.Utils from email.Charset import Charset from email.Header import Header -from Mailman import mm_cfg from Mailman import Utils +from Mailman.configuration import config COMMASPACE = ', ' @@ -113,7 +113,7 @@ class Message(email.Message.Message): This method differs from get_senders() in that it returns one and only one address, and uses a different search order. """ - senderfirst = mm_cfg.USE_ENVELOPE_SENDER + senderfirst = config.USE_ENVELOPE_SENDER if use_envelope is not None: senderfirst = use_envelope if senderfirst: @@ -165,7 +165,7 @@ class Message(email.Message.Message): names without the trailing colon. """ if headers is None: - headers = mm_cfg.SENDER_HEADERS + headers = config.SENDER_HEADERS pairs = [] for h in headers: if h is None: @@ -245,7 +245,7 @@ class UserNotification(Message): def _enqueue(self, mlist, **_kws): # Not imported at module scope to avoid import loop from Mailman.Queue.sbcache import get_switchboard - virginq = get_switchboard(mm_cfg.VIRGINQUEUE_DIR) + virginq = get_switchboard(config.VIRGINQUEUE_DIR) # The message metadata better have a `recip' attribute virginq.enqueue(self, listname = mlist.internal_name(), @@ -276,7 +276,7 @@ class OwnerNotification(UserNotification): def _enqueue(self, mlist, **_kws): # Not imported at module scope to avoid import loop from Mailman.Queue.sbcache import get_switchboard - virginq = get_switchboard(mm_cfg.VIRGINQUEUE_DIR) + virginq = get_switchboard(config.VIRGINQUEUE_DIR) # The message metadata better have a `recip' attribute virginq.enqueue(self, listname = mlist.internal_name(), |
