Wed 04 Feb 2009 12:58:17 PM UTC, original submission:
Noticed that after time the .mhonarc.db files are growing too much, leading to archive operation taking unexpected long time.
Found that array @ExtraHFields contains duplicate entries and
hash %ExtraHFields includes also entries for messages removed from archive.
In file $Id: mhrcfile.pl,v 2.46 2005/07/08 06:34:04 ehood
the entries from rcfile are added to @ExtraHFields even when already present.
Workaround: used <FieldStore override> in the rcfile.
The information is also not removed from %ExtraHFields upon messge deletion. Applied following patch:
##---------------------------------------------------------------------------##
## File:
## $Id: mhamain.pl,v 2.93 2006/06/10 02:42:58 ehood Exp $
## Author:
## Earl Hood -unavailable-
## Description:
## Main library for MHonArc.
##---------------------------------------------------------------------------##
--- mhamain.pl
***************
--- 1464,1470 ----
delete $IndexNum{$key};
delete $Refs{$key};
delete $Subject{$key};
+ delete $ExtraHFields{$key};
delete $MsgId{$Index2MsgId{$key}};
my $derived = $Derived{$key};
I am also using message preview based on mha-preview example,
but there appears no CB for message removal. I modified sub
db_save there to include
while (($key, undef) = each %X_MessagePreview ) {
next if exists ( $mhonarc::IndexNum{$key} );
delete $X_MessagePreview{$key};
}
|