RealRaven2000 / quickFilters

Thunderbird Add-on: quickFilters
http://quickfilters.quickfolders.org/
Other
46 stars 11 forks source link

Support combined "any" / "all" filters with mail clients that do (Betterbird 91.8) #102

Open RealRaven2000 opened 2 years ago

RealRaven2000 commented 2 years ago

The new version of Betterbird will support filters that allow mixing nested search conditions in which the operators "any" (OR) and "all" (AND) are supported, such as this:

image

RealRaven2000 commented 2 years ago

this means that certain things need to be reviewed:

  1. The "Sort search terms" function needs to be redesigned - we cannot assume all search terms are in the same group because it will destroy the logic of the filter if they are re-ordered. sorting could be done within a simple subgroup (like 2 groups shown in the example above) but even then care must be taken because the parentheses (beginsGrouping / endsGrouping) are stored in the first / last term of each group and not separately. This means if the first / last item are reordered then beginsGrouping / endsGrouping have to be transferred to the first / last item in the grouped list of conditions. At the beginning I suggest we disable sorting for any more complicated filter expression
  2. make sure we do not lose information when storing filters. I assume this should be alright as no new attributes have been added.
  3. The trouble-shooter will currently flag filters that have mixed (any + all) operators. This test needs to be disabled for mail clients which have the option of using mixed operators.

Betterbird github issue: https://github.com/Betterbird/thunderbird-patches/issues/35

Here is the relevant patch with initial number of significant changes.

ThiloteE commented 2 years ago

Just for the record: There have been further related changes to Betterbird in:

Quickfilters most significantly will be affected by https://github.com/Betterbird/thunderbird-patches/issues/62#issuecomment-1153096911

ThiloteE commented 1 year ago

Has this been solved or is it still on the to do list?

RealRaven2000 commented 1 year ago

Has this been solved or is it still on the to do list?

I support creating filters and custom filter templates, also backup and restore. Merging is still an open question.