diff options
| author | viega | 1998-06-02 05:46:23 +0000 |
|---|---|---|
| committer | viega | 1998-06-02 05:46:23 +0000 |
| commit | a8a6c0a3f9dde84164884d1bb4080451f160a4b9 (patch) | |
| tree | 8c34af07faacdf03f08cdb1532532a6351c248b8 /Mailman/GatewayManager.py | |
| parent | 4b414bfb1e536a9c3a0595b8bdc08618ab9de949 (diff) | |
| download | mailman-a8a6c0a3f9dde84164884d1bb4080451f160a4b9.tar.gz mailman-a8a6c0a3f9dde84164884d1bb4080451f160a4b9.tar.zst mailman-a8a6c0a3f9dde84164884d1bb4080451f160a4b9.zip | |
Diffstat (limited to 'Mailman/GatewayManager.py')
| -rw-r--r-- | Mailman/GatewayManager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/GatewayManager.py b/Mailman/GatewayManager.py index df407fa67..f26811fcf 100644 --- a/Mailman/GatewayManager.py +++ b/Mailman/GatewayManager.py @@ -62,8 +62,8 @@ class GatewayManager: headers = con.head(`num`)[3] found_to = 0 for header in headers: - i = string.index(header, ':') - if string.lower(header[:i]) == 'to': + i = string.find(header, ':') + if i > 0 and string.lower(header[:i]) == 'to': found_to = 1 if header[:i] <> 'X-BeenThere': continue |
