Skip to content

Commit c7c8d3d

Browse files
author
Richard Jones
committed
better match for mailgw help "command" text
1 parent fe9defe commit c7c8d3d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ are given with the most recent entry first.
1111
- applied patches for handling Outlook quirks (thanks Andrey Lebedev)
1212
(multipart/alternative, "fw" and content-type "name")
1313
- fire auditors and reactors in rdbms retire (thanks Sheila King)
14+
- better match for mailgw help "command" text
1415

1516

1617
2002-12-11 0.5.3

roundup/mailgw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373
an exception, the original message is bounced back to the sender with the
7474
explanatory message given in the exception.
7575
76-
$Id: mailgw.py,v 1.103 2002-12-27 23:54:05 richard Exp $
76+
$Id: mailgw.py,v 1.104 2003-01-06 21:28:38 richard Exp $
7777
'''
7878

7979
import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri
@@ -390,7 +390,7 @@ def handle_message(self, message):
390390
# handle the subject line
391391
subject = message.getheader('subject', '')
392392

393-
if subject.strip() == 'help':
393+
if subject.strip().lower() == 'help':
394394
raise MailUsageHelp
395395

396396
m = subject_re.match(subject)

0 commit comments

Comments
 (0)