summaryrefslogtreecommitdiff
path: root/Mailman/Bouncer.py
diff options
context:
space:
mode:
authormailman1998-05-20 17:18:19 +0000
committermailman1998-05-20 17:18:19 +0000
commitee47fe976d208a92182d44d000a3851fd2a65cfc (patch)
tree99c4672bb4cb9932d62dad9cb584eb3ecc3991af /Mailman/Bouncer.py
parent40e4dcc25da8367a214d12ef65166bd3bc57942f (diff)
downloadmailman-ee47fe976d208a92182d44d000a3851fd2a65cfc.tar.gz
mailman-ee47fe976d208a92182d44d000a3851fd2a65cfc.tar.zst
mailman-ee47fe976d208a92182d44d000a3851fd2a65cfc.zip
Diffstat (limited to 'Mailman/Bouncer.py')
-rw-r--r--Mailman/Bouncer.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/Mailman/Bouncer.py b/Mailman/Bouncer.py
index ef7b6cf2e..040e33195 100644
--- a/Mailman/Bouncer.py
+++ b/Mailman/Bouncer.py
@@ -1,6 +1,6 @@
"Handle delivery bounce messages, doing filtering when list is set for it."
-__version__ = "$Revision: 529 $"
+__version__ = "$Revision: 530 $"
# It's possible to get the mail-list senders address (list-admin) in the
# bounce list. You probably don't want to have list mail sent to that
@@ -283,7 +283,7 @@ class Bouncer:
messy_pattern_6 = regex.compile('^[ \t]*[^ ]+: User unknown.*$')
messy_pattern_7 = regex.compile('^[^ ]+ - User currently disabled.*$')
- message_groked = 0
+ message_grokked = 0
for line in string.split(relevant_text, '\n'):
for pattern, action in simple_bounce_pats:
@@ -291,16 +291,16 @@ class Bouncer:
email = self.ExtractBouncingAddr(line)
if action == REMOVE:
candidates = candidates + string.split(email,',')
- message_groked = 1
+ message_grokked = 1
continue
elif action == BOUNCE:
emails = string.split(email,',')
for email_addr in emails:
self.RegisterBounce(email_addr)
- message_groked = 1
+ message_grokked = 1
continue
else:
- message_groked = 1
+ message_grokked = 1
continue
# Now for the special case messages that are harder to parse...
@@ -308,24 +308,24 @@ class Bouncer:
or messy_pattern_2.match(line) <> -1):
username = string.split(line)[1]
self.RegisterBounce('%s@%s' % (username, remote_host))
- message_groked = 1
+ message_grokked = 1
continue
if (messy_pattern_3.match(line) <> -1
or messy_pattern_4.match(line) <> -1
or messy_pattern_5.match(line) <> -1):
username = string.split(line)[1]
candidates.append('%s@%s' % (username, remote_host))
- message_groked = 1
+ message_grokked = 1
continue
if messy_pattern_6.match(line) <> -1:
username = string.split(string.strip(line))[0][:-1]
candidates.append('%s@%s' % (username, remote_host))
- message_groked = 1
+ message_grokked = 1
continue
if messy_pattern_7.match(line) <> -1:
username = string.split(string.strip(line))[0]
candidates.append('%s@%s' % (username, remote_host))
- message_groked = 1
+ message_grokked = 1
continue
did = []
@@ -339,7 +339,7 @@ class Bouncer:
if i not in did:
self.HandleBouncingAddress(i)
did.append(i)
- return message_groked
+ return message_grokked
def ExtractBouncingAddr(self, line):
email = regsub.splitx(line, '[^ \t@<>]+@[^ \t@<>]+\.[^ \t<>.]+')[1]