summaryrefslogtreecommitdiff
path: root/modules/mm_gateway.py
diff options
context:
space:
mode:
authorviega1998-06-02 05:46:23 +0000
committerviega1998-06-02 05:46:23 +0000
commita8a6c0a3f9dde84164884d1bb4080451f160a4b9 (patch)
tree8c34af07faacdf03f08cdb1532532a6351c248b8 /modules/mm_gateway.py
parent4b414bfb1e536a9c3a0595b8bdc08618ab9de949 (diff)
downloadmailman-a8a6c0a3f9dde84164884d1bb4080451f160a4b9.tar.gz
mailman-a8a6c0a3f9dde84164884d1bb4080451f160a4b9.tar.zst
mailman-a8a6c0a3f9dde84164884d1bb4080451f160a4b9.zip
Diffstat (limited to 'modules/mm_gateway.py')
-rw-r--r--modules/mm_gateway.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mm_gateway.py b/modules/mm_gateway.py
index df407fa67..f26811fcf 100644
--- a/modules/mm_gateway.py
+++ b/modules/mm_gateway.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