[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Re: enhancement to mhfinddup
From: |
Valdis . Kletnieks |
Subject: |
Re: [Nmh-workers] Re: enhancement to mhfinddup |
Date: |
Tue, 09 Sep 2008 13:24:25 -0400 |
On Tue, 09 Sep 2008 12:59:50 EDT, address@hidden said:
> Possible enhancement for 1.3 - I'd code and test but am swimming in other work
> today...
Obviously true, because...
> if (exists $cached{"$folderpath/$m"}) {
> $sum1=$cached{$msgid};
should be $sum1=$cached("$folderpath/$m");
> } else {
> $sum1=md5_hex(@msgbody);
> $cached{"$folderpath/$m"}=$sum1;
> }
(I coded it up storing based on $msgid, then realized that was the wrong thing
for an index because we're specifically interested in the case where two
files have the same $msgid.. ;)
pgpHITeKKsm9m.pgp
Description: PGP signature