diff options
| author | bwarsaw | 2001-10-01 16:29:05 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-10-01 16:29:05 +0000 |
| commit | aa441ecb4472f991912fa9e0fbeff2e1a3aa8bb6 (patch) | |
| tree | 9c6d3f04597728d0a6da6b40095e9734e4d04769 /Mailman/Bouncers/SimpleMatch.py | |
| parent | c87380fa95d3774c7e6210872c8592474bd87bc7 (diff) | |
| download | mailman-aa441ecb4472f991912fa9e0fbeff2e1a3aa8bb6.tar.gz mailman-aa441ecb4472f991912fa9e0fbeff2e1a3aa8bb6.tar.zst mailman-aa441ecb4472f991912fa9e0fbeff2e1a3aa8bb6.zip | |
Diffstat (limited to 'Mailman/Bouncers/SimpleMatch.py')
| -rw-r--r-- | Mailman/Bouncers/SimpleMatch.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Mailman/Bouncers/SimpleMatch.py b/Mailman/Bouncers/SimpleMatch.py index c0c2bbc3b..3daa4925f 100644 --- a/Mailman/Bouncers/SimpleMatch.py +++ b/Mailman/Bouncers/SimpleMatch.py @@ -17,7 +17,7 @@ """Recognizes simple heuristically delimited bounces.""" import re -from mimelib import MsgReader +import email.Iterators @@ -72,17 +72,12 @@ patterns = [ def process(msg, patterns=patterns): - mi = MsgReader.MsgReader(msg) # simple state machine # 0 = nothing seen yet # 1 = intro seen addrs = {} state = 0 - while 1: - line = mi.readline() - #print '(%d) line: %s' % (state, line[:-1]) - if not line: - break + for line in email.Iterators.body_line_iterator(msg): if state == 0: for scre, ecre, acre in patterns: if scre.search(line): |
