chiark / gitweb /
Handle multi-line Subject header better
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 20 Jul 2009 09:16:22 +0000 (10:16 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 20 Jul 2009 09:16:57 +0000 (10:16 +0100)
commitd8846ff468b71be414ef40d17b16cb18773b3c21
treeb01187b53e377c74c88a30bfa326c718bc6cb139
parent06e17aa6f11f598a7cb802d5516e56708996c870
Handle multi-line Subject header better

It looks like not all multi-line Subject headers are split with \n\t.
This is causing an exception with the re.findall() calll in
stgit.commands.common.parse_mail() function. Use re.sub() instead of
replace().

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
stgit/commands/common.py