MozillaZine

Filter: complex OR/AND logic in virtual Folder (Saved Search

Discussion of features in Mozilla Thunderbird
Leopoldus
 
Posts: 353
Joined: April 8th, 2008, 4:29 am

Post Posted November 26th, 2017, 4:04 am

Hi,

I need to create some virtual folders (also known as "Saved Searches") with more complex logical syntax between several conditions. Let's say I want to get in my folder all the messages that have:
1) Age less than 3 days
AND
2) the tag "Important"
OR
3) the tag "Urgent"

At my first glance this need is quite simple and obvious, but I could not find any option for this. TB filter can bind all conditions either with the logic operator of the [AND] logic or with the [OR] operator, but it is not possible to combine both types of operators in the same filter.

In addition, I was looking for any work-around to solve a problem, for example, some option to run filters in a series one by one, but could not do it.

Maybe some add-ons? I checked FiltaZilla http://mesquilla.com/extensions/filtaquilla and QuickFilters http://quickfilters.mozdev.org, but they do not seem to offer this functionality too (or I could miss something).

Thanks!

tanstaafl
Moderator

User avatar
 
Posts: 43871
Joined: July 30th, 2003, 5:06 pm

Post Posted November 26th, 2017, 3:22 pm

http://kb.mozillazine.org/Files_and_fol ... hunderbird

You can work around that limitation with message filters by editing msgFilterRules.dat directly, rather than through the GUI. However, saved search uses virtualfolders.dat . It looks like you might be able to to do the same thing with that file too. You'll need to experiment.

I took a quick search using DXR in the source code but didn't spot the definitions used for searchFolderFlag. I added one saved search and noticed the file also had three saved searches for other accounts which used that flag. No idea why they existed. I didn't notice any harm after I deleted those other saved searches but perhaps its too soon to tell.

Return to Thunderbird Features


Who is online

Users browsing this forum: No registered users and 2 guests