Re: remove old messages from history

shutterbug <[email protected]> Tue, 06 Feb 2007 11:22:54 +0100
Newsgroups gmane.network.centericq
Message-ID <[email protected]>
Hi,

>> is there a script which goes thru all the history files in .centericq
>> dir and removes messages older than certain amount of time?
>> I'm experiencing delays when switching to user who has history file > 1MB.
> 
> Good idea, but changing the way CenterICQ works would be better. It seems 
> that CICQ (re)loads a whole history file when opening a chat window. It 
> would be better if it only loads the latest 40 messages and skips the others 
> (for speed and memory).

That would be definitely a better way to deal with this issue! The amount of
messages read from the history file should be adapted to the screen size. What
can't be displayed in the current conversation window should not be loaded
from the file. So a seek to the end of the file and to "tail" it, would be
sufficient, I think.

I'm starting to come into the same trouble now. But it's often helpful not to
throw away all of your history, in order to still be able to search for elder
entries.

> Loading all the chat history would only be useful 
> when starting the history view (e.g. with the h key). This change would 
> require a bit of C++ programming though (another patch...).

Yes, the reading of the history must be adapted.

Cheers,
sbug
_______________________________________________
Cicq mailing list
Cicq-xGejAJT2w6wWP6gT/[email protected]
http://mailman.linuxpl.org/mailman/listinfo/cicq
Questions? Check the FAQ first: http://centericq.de/faq/