From 003753379ff42f2c7d1a69cd1b77b95384f19ea2 Mon Sep 17 00:00:00 2001 Message-Id: <003753379ff42f2c7d1a69cd1b77b95384f19ea2.1715282719.git.mdw@distorted.org.uk> From: Mark Wooding Date: Fri, 7 Dec 2007 21:19:25 +0000 Subject: [PATCH] Make sure the refid given to 'mail' has the angle brackets Organization: Straylight/Edgeware From: Catalin Marinas Signed-off-by: Catalin Marinas --- stgit/commands/mail.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- [mdw]