[PATCH] patchbomb: send messages with a one second delay
Martijn Pieters
mj at zopatista.com
Tue May 19 13:39:30 CDT 2009
On Mon, May 18, 2009 at 21:30, Martin Geisler <mg at lazybytes.net> wrote:
> We do insert a Date header, it should be right here:
>
> m['Date'] = util.datestr(start_time, "%a, %d %b %Y %H:%M:%S %1%2")
Note that in a separate bug report it was pointed out that %a and %b
are localized weekday and month abbreviations, which means that for
anything but LC_ALL=C or en_US this means you get Date headers that
violate RFC (2)822. See the python library email package on how to
correctly format dates for emails.
--
Martijn Pieters
More information about the Mercurial-devel
mailing list