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 <catalin.marinas@gmail.com>
- # remove extra '[*PATCH]', 'name:' in the subject
+ # remove the '[*PATCH*]' expression in the subject
- 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'
descr += '\n\n'
else:
raise CmdException, 'Subject: line not found'