summaryrefslogtreecommitdiff
path: root/Mailman
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Bouncer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/Bouncer.py b/Mailman/Bouncer.py
index 40fed2296..4fc628e45 100644
--- a/Mailman/Bouncer.py
+++ b/Mailman/Bouncer.py
@@ -311,7 +311,7 @@ class Bouncer:
REMOVE = 2
# Bounce patterns where it's simple to figure out the email addr.
- email_regexp = '<?\([^ \t@s|<>]+@[^ \t@<>]+\.[^ \t<>.]+\)>?'
+ email_regexp = '<?\([^ \t@|<>]+@[^ \t@<>]+\.[^ \t<>.]+\)>?'
simple_bounce_pats = (
(regex.compile('.*451 %s.*' % email_regexp), BOUNCE),
(regex.compile('.*554 %s.*' % email_regexp), BOUNCE),
@@ -322,7 +322,8 @@ class Bouncer:
(regex.compile('%s .bounced.*' % email_regexp), BOUNCE),
(regex.compile('.*%s\.\.\. Deferred.*' % email_regexp), BOUNCE),
(regex.compile('.*User %s not known.*' % email_regexp), REMOVE),
- (regex.compile('.*%s: User unknown.*' % email_regexp), REMOVE))
+ (regex.compile('.*%s: User unknown.*' % email_regexp), REMOVE),
+ (regex.compile('.*%s\.\.\. User unknown' % email_regexp), REMOVE))
# patterns we can't directly extract the email (special case these)
messy_pattern_1 = regex.compile('^Recipient .*$')
messy_pattern_2 = regex.compile('^Addressee: .*$')