[PATCH] patchbomb: add user agent header to mails
timeless
timeless at gmail.com
Thu Apr 23 04:16:27 UTC 2009
re user agent string format, please note that at least for browsers
(and i believe for mail clients) traditionally each token is token/1.0
at least outside parentheses. I have a flight to catch, otherwise i'd
provide a url to the mozilla user agent specification.
On 4/22/09, Henrik Stuart <hg at hstuart.dk> wrote:
> # 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])
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>
--
Sent from my mobile device
More information about the Mercurial-devel
mailing list