diff options
| author | bwarsaw | 2000-04-09 20:34:59 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-04-09 20:34:59 +0000 |
| commit | 2a3f5590d0753e1ac786f3923d8f4fa80e185885 (patch) | |
| tree | e5a4be26e90435bca88715befc56bc363f534f24 /Mailman/Bouncers/Postfix.py | |
| parent | 1e47e5870b70b5444b6d5806b7eaea6b1c845163 (diff) | |
| download | mailman-2a3f5590d0753e1ac786f3923d8f4fa80e185885.tar.gz mailman-2a3f5590d0753e1ac786f3923d8f4fa80e185885.tar.zst mailman-2a3f5590d0753e1ac786f3923d8f4fa80e185885.zip | |
Diffstat (limited to 'Mailman/Bouncers/Postfix.py')
| -rw-r--r-- | Mailman/Bouncers/Postfix.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Bouncers/Postfix.py b/Mailman/Bouncers/Postfix.py index e666fbebd..6ffe967da 100644 --- a/Mailman/Bouncers/Postfix.py +++ b/Mailman/Bouncers/Postfix.py @@ -56,6 +56,7 @@ def process(mlist, msg): # are these heuristics correct or guaranteed? pcre = re.compile(r'\t\t\tthe postfix program$', re.IGNORECASE) +rcre = re.compile(r'failure reason:$', re.IGNORECASE) acre = re.compile(r'<(?P<addr>[^>]*)>:') def findaddr(fp): @@ -71,7 +72,7 @@ def findaddr(fp): # preserve leading whitespace line = string.rstrip(line) # yes use match to match at beginning of string - if state == 0 and pcre.match(line): + if state == 0 and (pcre.match(line) or rcre.match(line)): state = 1 elif state == 1 and line: mo = acre.search(line) |
