From: Catalin Marinas Date: Fri, 7 Dec 2007 21:19:25 +0000 (+0000) Subject: Make sure the refid given to 'mail' has the angle brackets X-Git-Tag: v0.14~6 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/003753379ff42f2c7d1a69cd1b77b95384f19ea2 Make sure the refid given to 'mail' has the angle brackets Signed-off-by: Catalin Marinas --- diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py index 53cd239..eea84f2 100644 --- a/stgit/commands/mail.py +++ b/stgit/commands/mail.py @@ -272,6 +272,8 @@ def __build_extra_headers(msg, msg_id, ref_id = None): msg['Date'] = email.Utils.formatdate(localtime = True) msg['Message-ID'] = msg_id if ref_id: + # make sure the ref id has the angle brackets + ref_id = '<%s>' % ref_id.strip(' \t\n<>') msg['In-Reply-To'] = ref_id msg['References'] = ref_id msg['User-Agent'] = 'StGIT/%s' % version.version