[PATCH] patchbomb: send messages with a one second delay

Martin Geisler mg at lazybytes.net
Sun May 17 07:32:06 CDT 2009


Giorgos Keramidas <keramida at ceid.upatras.gr> writes:

> On Sat, 16 May 2009 18:04:07 +0200, Martin Geisler <mg at lazybytes.net> wrote:
>> # HG changeset patch
>> # User Martin Geisler <mg at lazybytes.net>
>> # Date 1242489834 -7200
>> # Node ID a1e957667ac674a19957194ce2dbfe39414b59d6
>> # Parent  53ff4a5af284a235f2a430e1f8edfb25c82905aa
>> patchbomb: send messages with a one second delay
>> The "n of N" messages are all in reply to the "0 of N" message and
>> when several of them are sent within the same second, mail clients
>> have no good way of sorting them (except alphabetically by subject,
>> but does not seem like an otherwise useful default).
>
> Doesn't Gnus already sort these correctly using References: or the
> In-Reply-to: headers?

Gnus defaults to sort by the article numbers, which means keeping things
in the received order.

> It does here, but I have tweaked the gnus-gather-threads-by-xxx code
> to allow per-group customizations so I don't know if the default setup
> does this automatically.

It doesn't -- but Cédric made me aware that mutt sorts by the sent data
by default, and adding

  (setq gnus-thread-sort-functions '(gnus-thread-sort-by-date))

to my ~/.gnus makes Gnus do the same. This works since patchbomb
actually already takes care to put different Date headers in the mails:

  m['Date'] = util.datestr(start_time, "%a, %d %b %Y %H:%M:%S %1%2")
  start_time = (start_time[0] + 1, start_time[1])

Given that there is a nice way for me to solve the problem locally
without penalizing everybody else, I'll take back the patch.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090517/1a4cd988/attachment.pgp 


More information about the Mercurial-devel mailing list