comparison hgext/patchbomb.py @ 8160:094e0d982c8a

patchbomb: add user agent header to mails
author Henrik Stuart <hg@hstuart.dk>
date Thu, 23 Apr 2009 08:39:27 +0200
parents 5ec526c1a32f
children f3abe032fc89
comparison
equal deleted inserted replaced
8159:19f22977e635 8160:094e0d982c8a
397 if parent: 397 if parent:
398 m['In-Reply-To'] = parent 398 m['In-Reply-To'] = parent
399 m['References'] = parent 399 m['References'] = parent
400 else: 400 else:
401 parent = m['Message-Id'] 401 parent = m['Message-Id']
402 m['User-Agent'] = 'Mercurial-patchbomb/%s' % util.version()
402 m['Date'] = util.datestr(start_time, "%a, %d %b %Y %H:%M:%S %1%2") 403 m['Date'] = util.datestr(start_time, "%a, %d %b %Y %H:%M:%S %1%2")
403 404
404 start_time = (start_time[0] + 1, start_time[1]) 405 start_time = (start_time[0] + 1, start_time[1])
405 m['From'] = sender 406 m['From'] = sender
406 m['To'] = ', '.join(to) 407 m['To'] = ', '.join(to)