X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/blobdiff_plain/ff432158b249307d44177db1adc569f726eefb18..003753379ff42f2c7d1a69cd1b77b95384f19ea2:/stgit/commands/mail.py?ds=sidebyside 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