From: Catalin Marinas Date: Thu, 28 Jul 2005 16:30:10 +0000 (+0100) Subject: Allow ':' in the subject of imported messages X-Git-Tag: v0.5~3 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/186e6b6b9bb8dcc916ea7236d5531b3fc349362d Allow ':' in the subject of imported messages Initially, the 'import' command used to remove the 'word:' expression from the subject line of an e-mail. This might actually be useful for a big system with sub-systems. Signed-off-by: Catalin Marinas --- diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index 5e3eddd..de735c4 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -81,10 +81,9 @@ def __parse_mail(filename = None): # end of headers break - # remove extra '[*PATCH]', 'name:' in the subject + # remove the '[*PATCH*]' expression in the subject if descr: - descr = re.findall('^(\[[^\s]*PATCH.*?\])?\s*([^\s]*:)?\s*(.*)$', - descr)[0][2] + descr = re.findall('^(\[[^\s]*PATCH.*?\])?\s*(.*)$', descr)[0][1] descr += '\n\n' else: raise CmdException, 'Subject: line not found'