From kmail-devel Mon Mar 27 09:32:12 2000 From: Stefan Taferner Date: Mon, 27 Mar 2000 09:32:12 +0000 To: kmail-devel Subject: Re: wooo corruption X-MARC-Message: https://marc.info/?l=kmail-devel&m=95414962630907 On Sun, 26 Mar 2000, Don Sanders wrote: > Hopefully you can keep on thinking about the search dialog. I think we will > need an extra level of abstraction for background searching. Basically we > need a folder iterator that iterates over messages in a folder. It has to > be 'event safe', so when another part of KMail deletes/adds messages to a > folder, or even deletes a folder the iterator still has to return sensible > results. This will require editing the kmfolder code (and perhaps the > kmfoldermgr code) but not much else. > > If the search dialog finds a match then it should store the KMMsgBase > rather than the message number, this way you can use KMFolder::find to > refind the message. > > Actually now I think about it this should not be too hard. Anyway if in 6 > weeks time or so you can check in a blocking version of the search dialog > that uses KMFolder's rather than searching the raw folder file on disk (I > don't know which way you planned to do it) then it shouldn't be too hard to > make it fairly non-blocking. Please wait a bit with the non-blocking code. I will try to get the IMAP groundwork -- I talked about in my previous mail -- out of the door in the next weeks, then things will be a bit different (but hopefully more flexible). --Stefan