RealRaven2000 / quickFilters

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

Create filter by subject - option to allow full subject if `[string]` in line #89

Closed pfagomez closed 2 years ago

pfagomez commented 2 years ago

Background:

all emails I get on an inbox have the tag [something]. Everytime I want to create a quickfilter by subject I have to copy and paste it manually, because the automatic detection only detects the "tag" [something] and deletes everything else. I see how this could be useful, but in my case it makes it absolutely useless.

RealRaven2000 commented 2 years ago

Background:

all emails I get on an inbox have the tag [something]. Everytime I want to create a quickfilter by subject I have to copy and paste it manually, because the automatic detection only detects the "tag" [something] and deletes everything else. I see how this could be useful, but in my case it makes it absolutely useless.

ok, so what you are saying is that you would like to be able to disable this feature - as you would like the complete subject line copied into the search condition?

pfagomez commented 2 years ago

yes! ideally it creates one condition with the (each) tag and one with the remaining text. acceptably it creates one condition with the whole subject

RealRaven2000 commented 2 years ago

Here is a test version. After installation, open the config editor using Thunderbird Preferences-General - [Config Editor...] (The button is at the bottom right). IN the search field enter subjectDisableKeywordsExtract . Set this setting to true:

extensions.quickfilters.subjectDisableKeywordsExtract = true

image

This will activate the alternative behavior. Test version below:

quickFilters-wx-5.3.3pre13.zip

to install, download the zip file, then drag it into Thunderbird Add-ons manager. on the popup, click the Add button.

RealRaven2000 commented 2 years ago

Once the testing phase is over and this setting proves to be useful I will add a global option to quickFilters settings / Advanced to toggle the new switch.

pfagomez commented 2 years ago

unwanted behaviour is gone! Thank you very much for the update. However: now it creates one filter for each reply:

[string] original subject

RE: [string] original subject

RE: RE: [string] original subject

RE: RE: RE: [string] original subject

but I guess that is better.

RealRaven2000 commented 2 years ago

unwanted behaviour is gone! Thank you very much for the update. However: now it creates one filter for each reply: [string] original subject RE: [string] original subject RE: RE: [string] original subject RE: RE: RE: [string] original subject but I guess that is better.

Ok - so what you are saying is that you create the filter by moving a bunch of messages to a folder (rather than the first one)? I would just move the first message (with assistant active), then create the filter and click "run filters" as the last step to test the condition - this way you avoid duplication of the filter conditions and get a test of your new filter for free!

Since (by default settings) the filter list shows with the new filter highlighted the test step is only a single click.

RealRaven2000 commented 2 years ago

I added a user interface (option on the Actions tab) for setting / unsetting this new behavior. Latest test version:

quickFilters-wx-5.4pre24.zip

to install, download the zip file, then drag it into Thunderbird Add-ons manager. on the popup, click the Add button.

RealRaven2000 commented 2 years ago

Implemented in 5.4 released today