<<< Date Index >>>     <<< Thread Index >>>

Re: header_cache database always growing



Hi,

* Michelle Konzack wrote:
Am 2007-11-21 11:49:13, schrieb Nicolas KOWALSKI:
On Wed, Nov 21, 2007 at 09:37:22AM +0100, Rocco Rutte wrote:
> * Nicolas KOWALSKI wrote:

>> I have noticed that the headers databases are always growing, even if >> I delete mails.

> Here it's important from where you delete them. When you delete them > within mutt using that header cache, it should remove those entries > (mutt doesn't sync the hcache to changes using other tools).

I delete these mails within mutt.

Me too...  And it seems to me like a bug...

Yes, confirmed with qdbm here. I checked and both qdbm as well as gdbm provide routines to reorganize/optimize the database which seems to work here (at least for qdbm). I guess the backends keep the allocated space and don't free them immediately as that's (maybe lots of) additional costs.

I'll send out a patch to mutt-dev tomorrow since I need to do some testing on how fast/slow that actually is.

Rocco