URL:
<http://savannah.nongnu.org/bugs/?25486>
Summary: Resource FieldStore causes .mhonarc.db to grow over
bounds.
Project: MHonArc
Submitted by: amk
Submitted on: Wed 04 Feb 2009 12:58:17 PM GMT
Category: Database
Severity: 3 - Normal
Item Group: Undesired Behavior
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Operating System: Linux
Perl Version: 5.8.8
Component Version: 2.6.16
Fixed Release:
_______________________________________________________
Details:
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 mhonarc(_at_)mhonarc(_dot_)org
## Description:
## Main library for MHonArc.
##---------------------------------------------------------------------------##
*** mhamain.pl.orig
--- mhamain.pl
***************
*** 1464,1469 ****
--- 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};
}
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?25486>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV