changeset 9573 | b8352a3617f3 |
parent 9243 | df21a009c9c4 |
child 9576 | c156bf947e26 |
child 9585 | ea1935e2020a |
--- a/mercurial/patch.py Thu Oct 08 23:32:36 2009 +0200 +++ b/mercurial/patch.py Thu Oct 08 23:42:33 2009 +0200 @@ -63,6 +63,10 @@ subject = msg['Subject'] user = msg['From'] + if not subject and not user: + # Not an email, restore parsed headers if any + subject = '\n'.join(': '.join(h) for h in msg.items()) + '\n' + gitsendmail = 'git-send-email' in msg.get('X-Mailer', '') # should try to parse msg['Date'] date = None