Hello Greg,

> IIRC you use read filters a lot, so in my mind I find it difficult
> imagining a system which updates real time when messages are being
> constantly moved around. I would think it would be somewhat difficult
> determining the accuracy of the results when messages are constantly
> being moved around with read filters. I maybe wrong because I'm just
> thinking out loud.

Yes, it is true I use a lot of Read filters. But now that I have though
a bit more about it, it shouldn't be really difficult to update VFs in
real-time. I obviously don't know anything about TB's internals and
structures but, if two way pointers are used both for messages and
folder, I think it can be done. Just think "high level" and let's talk
about Source and Destination folders (SF and DF) for the message that is
to be moved (whether with Read filters, manually, whatever.

The first thing to check would if SF is being used by any VFs for their
searches. If the SF reverse pointers table is empty then it is not being
used and no further check are needed for SF or for the message, we can
move the message and check DF.

We could as well just forget about the SF pointers and check
the reverse pointers of the message that would point to any VFs that are
displaying it. If none, then we can also go to check DF.

Now, if the message is being displayed in any VFs, the reverse pointers
should indicate which are these folders and then we could proceed to
"delete" it from the pointed to views (VFs).

Now DF. Is it being used by any VFs (reverse pointers should indicate
so)? If yes, then we must loop though the rest of search conditions in
each of the VFs pointed, and see if the message "arriving" to the DF
meets the criteria (search string, colour group, flags, etc.) and set
the message forward (VF to DF) and reverse (DF to VF) pointers.

I really think that something of this sort should work and should not be
too difficult to implement, and it should be fast enough for normal
real-time refreshes. Of course if I am moving many (how many is "many"?)
messages at a time, refresh time may/will be noticeable but it should
always be less than a manual refresh (repeat the whole search) after the
move.

Does anybody follow me or have I been drinking too much again? ;-)

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v2.04.7




________________________________________________________
 Current beta is (none) | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/

Reply via email to