[PATCH] patchbomb: add user agent header to mails

Henrik Stuart hg at hstuart.dk
Wed Apr 22 12:52:36 CDT 2009


# HG changeset patch
# User Henrik Stuart <hg at hstuart.dk>
# Date 1240422467 -7200
# Node ID 830905a1f887cdced418bb6d09a5be9bf605bcf6
# Parent  c11636f0609effbb14964a6e8939c2e2d3453450
patchbomb: add user agent header to mails

diff -r c11636f0609e -r 830905a1f887 hgext/patchbomb.py
--- a/hgext/patchbomb.py	Wed Apr 22 09:11:46 2009 +0200
+++ b/hgext/patchbomb.py	Wed Apr 22 19:47:47 2009 +0200
@@ -399,6 +399,7 @@
             m['References'] = parent
         else:
             parent = m['Message-Id']
+        m['User-Agent'] = 'Mercurial patchbomb/%s' % util.version()
         m['Date'] = util.datestr(start_time, "%a, %d %b %Y %H:%M:%S %1%2")
 
         start_time = (start_time[0] + 1, start_time[1])


More information about the Mercurial-devel mailing list