Aaron Stone wrote:
I'm a big fan of double digest. I don't think the algorithm matters much,
just as long as the two are very different. Even just MD5 and SHA1 should
be plenty good, IMHO.
No, not more than some checksum that was as long as the sum of the two
checksums you were using.
If you want to be *certain* that you will only have one different mime
part for a give key,
you need a two part key where the second part of the key is the sequence
number (i.e. the first mime part with this checksum value, the second
one). In practice, most of the second
parts of the key will have a value of 1, but theoretically, with
multi-megabyte
attachments, millions of them could map to the same checksum value.
If you double the length of the key, you only cut the number of the
maximum theoretical
value of the second key by half. But if you use a sequence number for
part of the key, you assure
that you will NEVER wrongly think two mime parts are the same just
because the checksums match.
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail