From 023dbd0ba6b115cd917e0638561ed4d6f803a0e5 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 6 Jan 2003 21:28:38 +0000 Subject: [PATCH] better match for mailgw help "command" text git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1422 57a73879-2fb5-44c3-a270-3262357dd7e2 --- CHANGES.txt | 1 + roundup/mailgw.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index e2ea984..171bd3e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -11,6 +11,7 @@ are given with the most recent entry first. - applied patches for handling Outlook quirks (thanks Andrey Lebedev) (multipart/alternative, "fw" and content-type "name") - fire auditors and reactors in rdbms retire (thanks Sheila King) +- better match for mailgw help "command" text 2002-12-11 0.5.3 diff --git a/roundup/mailgw.py b/roundup/mailgw.py index 9d1fc8e..bca8851 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -73,7 +73,7 @@ are calling the create() method to create a new node). If an auditor raises an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.103 2002-12-27 23:54:05 richard Exp $ +$Id: mailgw.py,v 1.104 2003-01-06 21:28:38 richard Exp $ ''' import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri @@ -390,7 +390,7 @@ class MailGW: # handle the subject line subject = message.getheader('subject', '') - if subject.strip() == 'help': + if subject.strip().lower() == 'help': raise MailUsageHelp m = subject_re.match(subject) -- 2.30.2