From: Catalin Marinas Date: Sat, 17 Sep 2005 07:53:58 +0000 (+0100) Subject: Ignore the case on the PATCH name when importing X-Git-Tag: v0.14.3~677 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/7c02f338c0e6386b322b520c0805a095a0fa2aa1 Ignore the case on the PATCH name when importing Signed-off-by: Catalin Marinas --- diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index 6baf426..c956c91 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -100,7 +100,8 @@ def __parse_mail(filename = None): # remove the '[*PATCH*]' expression in the subject if descr: - descr = re.findall('^(\[[^\s]*PATCH.*?\])?\s*(.*)$', descr)[0][1] + descr = re.findall('^(\[[^\s]*[Pp][Aa][Tt][Cc][Hh].*?\])?\s*(.*)$', + descr)[0][1] descr += '\n\n' else: raise CmdException, 'Subject: line not found'