summaryrefslogtreecommitdiff
path: root/src/mailman/queue
diff options
context:
space:
mode:
authorBarry Warsaw2009-02-12 22:26:28 -0500
committerBarry Warsaw2009-02-12 22:26:28 -0500
commit8b8586ca375b23787b5a74761773cd759f74994e (patch)
tree13b74a80eb132184a763e3148392b0a9d80fd086 /src/mailman/queue
parent62f4c909f90535986614a411db982bdcccaec3a1 (diff)
downloadmailman-8b8586ca375b23787b5a74761773cd759f74994e.tar.gz
mailman-8b8586ca375b23787b5a74761773cd759f74994e.tar.zst
mailman-8b8586ca375b23787b5a74761773cd759f74994e.zip
Remove Utils.ParseEmail() and Utils.midnight().
Diffstat (limited to 'src/mailman/queue')
-rw-r--r--src/mailman/queue/bounce.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/queue/bounce.py b/src/mailman/queue/bounce.py
index ced731d6d..c966729bb 100644
--- a/src/mailman/queue/bounce.py
+++ b/src/mailman/queue/bounce.py
@@ -26,9 +26,9 @@ import datetime
from email.Utils import parseaddr
from lazr.config import as_timedelta
-from mailman import Utils
from mailman.Bouncers import BouncerAPI
from mailman.config import config
+from mailman.email.utils import split_email
from mailman.i18n import _
from mailman.queue import Runner
@@ -227,7 +227,7 @@ class BounceRunner(Runner, BounceMixin):
def verp_bounce(mlist, msg):
- bmailbox, bdomain = Utils.ParseEmail(mlist.GetBouncesEmail())
+ bmailbox, bdomain = split_email(mlist.GetBouncesEmail())
# Sadly not every MTA bounces VERP messages correctly, or consistently.
# Fall back to Delivered-To: (Postfix), Envelope-To: (Exim) and
# Apparently-To:, and then short-circuit if we still don't have anything
@@ -258,7 +258,7 @@ def verp_bounce(mlist, msg):
def verp_probe(mlist, msg):
- bmailbox, bdomain = Utils.ParseEmail(mlist.GetBouncesEmail())
+ bmailbox, bdomain = split_email(mlist.GetBouncesEmail())
# Sadly not every MTA bounces VERP messages correctly, or consistently.
# Fall back to Delivered-To: (Postfix), Envelope-To: (Exim) and
# Apparently-To:, and then short-circuit if we still don't have anything