On 5.1.2010 18:20, Miha Vrhovnik wrote: > Approx 105k messages. Minimum is a zero about 2% of messages.
> P.S. using just hash of message-id is not ok, in my case I would get > about 2% of collisions. Ah, yes... I always forget that 2822 says only SHOULD instead of MUST on the matter of message-id -header :) Missing (ie. empty) message-id would definetly cause collisions when hashed. This is why my code generally uses the secondary approach that you also mention when this happens: > sha-256 or sha-512 on all message headers might be ok :) ...though I use MD5 for that too; risk of collision is still minuscule (after this, if there still are collisions, I try hashing the whole message - after that, if I *still* get a collision, I can be fairly certain that I've already received the message before:) -- Markku Uttula ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
