Re: PHP hash
Bruce Guenter <[email protected]> Thu, 27 Sep 2007 16:56:20 -0600
| Newsgroups | gmane.mail.ezmlm |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 03, 2007 at 12:10:11PM -0500, Kyle Wheeler wrote: > If I understand ezmlm correctly, that thread ID is generated from some > details of the message that I handed it (just the Subject line, right?). Correct, assuming it's the first message and not a reply. ezmlm-idx tries to strip off reply prefixes like "re:" before calculating the hash. > So, I *think* I should be able to figure out what the thread ID will be at > the time I hand the message to ezmlm for delivery. However, I'm having > trouble replicating the hash based on my code-dives into ezmlm. > > Can any give me a hand? Is there a succinct description of this hash > function anywhere? The hash function is called "surf", and is described in http://cr.yp.to/papers/surf.pdf It is applied in the makehash function. There is no more succinct description than the code (though there are parts of it that I don't entirely understand just from looking at it). -- Bruce Guenter <[email protected]> http://untroubled.org/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFG/DUU6W+y3GmZgOgRAoqnAJ4u6lDNXyWnvoX1buaogsrgNy/nSwCgg2TI TobbWgerdMswLp1tN54GLBs= =HuK9 -----END PGP SIGNATURE-----