summaryrefslogtreecommitdiff
path: root/Mailman/Deliverer.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-14 21:23:28 -0400
committerBarry Warsaw2007-07-14 21:23:28 -0400
commit327865eaf118f40063366acad9c7d97487e010d6 (patch)
treeeda494bb7560b1427813ae7ec51a22e3d0444703 /Mailman/Deliverer.py
parent288ae405b09baa443eb1b39422c48c315fbb2e5a (diff)
downloadmailman-327865eaf118f40063366acad9c7d97487e010d6.tar.gz
mailman-327865eaf118f40063366acad9c7d97487e010d6.tar.zst
mailman-327865eaf118f40063366acad9c7d97487e010d6.zip
Other than contrib files, convert all imports of mm_cfg to imports of config.
Ignore mailman.egg-info In bin/make_instance.py: Catch and ignore import errors when importing Mailman.i18n. Before this script has actually been run, there won't be enough infrastructure in place of the import to succeed. Include several other fixes in this file. Add install_requires to the setup script.
Diffstat (limited to 'Mailman/Deliverer.py')
-rw-r--r--Mailman/Deliverer.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mailman/Deliverer.py b/Mailman/Deliverer.py
index 5682a4a22..e4ff15a58 100644
--- a/Mailman/Deliverer.py
+++ b/Mailman/Deliverer.py
@@ -23,12 +23,12 @@ import logging
from email.MIMEMessage import MIMEMessage
from email.MIMEText import MIMEText
-from Mailman import i18n
from Mailman import Errors
from Mailman import Message
-from Mailman import mm_cfg
from Mailman import Pending
from Mailman import Utils
+from Mailman import i18n
+from Mailman.configuration import config
_ = i18n._
@@ -75,7 +75,7 @@ your membership administrative address, %(addr)s.'''))
_('Welcome to the "%(realname)s" mailing list%(digmode)s'),
text, pluser)
msg['X-No-Archive'] = 'yes'
- msg.send(self, verp=mm_cfg.VERP_PERSONALIZED_DELIVERIES)
+ msg.send(self, verp=config.VERP_PERSONALIZED_DELIVERIES)
def SendUnsubscribeAck(self, addr, lang):
realname = self.real_name
@@ -83,7 +83,7 @@ your membership administrative address, %(addr)s.'''))
self.GetMemberAdminEmail(addr), self.GetBouncesEmail(),
_('You have been unsubscribed from the %(realname)s mailing list'),
Utils.wrap(self.goodbye_msg), lang)
- msg.send(self, verp=mm_cfg.VERP_PERSONALIZED_DELIVERIES)
+ msg.send(self, verp=config.VERP_PERSONALIZED_DELIVERIES)
def MailUserPassword(self, user):
listfullname = self.fqdn_listname
@@ -131,7 +131,7 @@ your membership administrative address, %(addr)s.'''))
msg = Message.UserNotification(recipient, adminaddr, subject, text,
lang)
msg['X-No-Archive'] = 'yes'
- msg.send(self, verp=mm_cfg.VERP_PERSONALIZED_DELIVERIES)
+ msg.send(self, verp=config.VERP_PERSONALIZED_DELIVERIES)
def ForwardMessage(self, msg, text=None, subject=None, tomoderators=True):
# Wrap the message as an attachment
@@ -206,7 +206,7 @@ is required.""")))
'bounces': self.internal_name() + '-bounces',
'token': token,
}
- probeaddr = '%s@%s' % ((mm_cfg.VERP_PROBE_FORMAT % probedict),
+ probeaddr = '%s@%s' % ((config.VERP_PROBE_FORMAT % probedict),
self.host_name)
# Calculate the Subject header, in the member's preferred language
ulang = self.getMemberLanguage(member)