nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Re: enhancement to mhfinddup

2008-09-09 13:24:42
On Tue, 09 Sep 2008 12:59:50 EDT, Valdis(_dot_)Kletnieks(_at_)vt(_dot_)edu 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.. ;)

Attachment: pgp9KniBtnWTW.pgp
Description: PGP signature

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] Current Thread [Next in Thread>