[bug #25486] Resource FieldStore causes .mhonarc.db to grow over bounds.

2009-02-04 07:58:43


                 Summary: Resource FieldStore causes .mhonarc.db to grow over
                 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: 



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:,v 2.46 2005/07/08 06:34:04 ehood
the entries from rcfile are added to @ExtraHFields even when already

Workaround: used <FieldStore override> in the rcfile.

The information is also not removed from %ExtraHFields upon messge deletion.
Applied following patch:

##  File:
##      $Id:,v 2.93 2006/06/10 02:42:58 ehood Exp $
##  Author:
##      Earl Hood       mhonarc(_at_)mhonarc(_dot_)org
##  Description:
##      Main library for MHonArc.
*** 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:


  Message sent via/by Savannah

To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the

<Prev in Thread] Current Thread [Next in Thread>
  • [bug #25486] Resource FieldStore causes .mhonarc.db to grow over bounds., Andrej Mikus <=