[Mailman-Developers] Improving the archives
iane at sussex.ac.uk
Wed Oct 3 11:53:31 CEST 2007
--On 2 October 2007 22:47:35 -0400 Barry Warsaw <barry at list.org> wrote:
> One question: should the angle brackets on the Message-ID be part of
> the hash or not? I think they should, or IOW, the entire value of
> the Message-ID header is taken as the hash, though they should be
> stripped off if using the Message-ID in any kind of archive query.
> I'm open to suggestions though... comments?
Mathematically, the two solutions are equivalent for valid headers, aren't
they? OK, the hashes will be different, but only in a trivial sense.
Technically, I imagine, it's going to be easier to handle bogus headers if
you just hash the entire header. For example, what do you do if some piece
of crapware gives you a message with a header missing the angle brackets?
Or that adds something outside angle brackets? Or that includes a
right-angle bracket in the message-id itself?
You don't have to think about any of those situations if you either (A)
reject the message or (B) encode the entire header.
IT Services, University of Sussex
More information about the Mailman-Developers