RealRaven2000 / FiltaQuilla

Adds many new mail filter actions to Thunderbird
http://quickfilters.quickfolders.org/filtaquilla.html
GNU General Public License v3.0
88 stars 17 forks source link

Header Regex Match not working #206

Open richharp825 opened 1 year ago

richharp825 commented 1 year ago

I have tried Header Regex Match but could not get it to work, not with existing nor with custom headers.

On the Thunderbird page, mailnews.customDBHeaders is a boolean and mailnews.customHeaders contains the custom headers. When adding custom headers using the existing UI in Thunderbird, it adds the custom headers to mailnews.customHeaders . But the instructions at FiltaQuilla ask custom headers to be added to mailnews.customDBHeaders (which is supposed to a boolean).

Could you give a simple example how to get the Header Regex Match to work? And why doesn't FiltaQuilla take the custom headers from mailnews.customHeaders where they are usually added (or maybe it does but the documentation page has a mistake)?

Thunderbird 102.6.0, FiltaQuilla 3.6.1.

RealRaven2000 commented 1 year ago

I need to investigate this, I haven't written nor tested this functionality. As regards custom headers, I think they all start with "x-" according to the documentation, that's all I can say right now before looking at the actual code...

RealRaven2000 commented 1 year ago

I think you may be taking the term custom DB headers from the (old) documentation too literally. Ths list of custom headers is stored in mailnews.customHeaders

In my (fairly old) profile I find the following entry:

image

these match with the headers listed on the customize... menu item in search terms:

image

richharp825 commented 1 year ago

Thanks for replying. I understand what you wrote. It works the same way for me. But what does not work for me is the Header Regex Match.

Meaning, I create a filter using Header Regex Match, writing "X-Spam-Status: No" in the box. I make sure that the custom header "X-Spam-Status" appears both in the customize... menu item and in mailnews.customHeaders. I choose an email and check that it contains the header with some text, "X-Spam-Status: No, score=...". I add an action and I run the filter on this email. Nothing happens.

mabar66 commented 10 months ago

Maybe the paid version works ;)

RealRaven2000 commented 10 months ago

Maybe the paid version works ;)

there is no paid version ;) you can only support my work via a quickFilters license. One tip would be not to have a space after the ":". The other thing I currently don't know (and need to test) whether the word "No" is the correct value or whether one has to use something else. If you can supply test mails (name.eml format!!) / scenarios (with what you used as search value) I can test it directly with the mail, in the Debugger, to see what's going on!

mabar66 commented 10 months ago

can you look at my zip?

RealRaven2000 commented 10 months ago

can you look at my zip?

Where is the zip file, did you attach it? Make sure you use the github website for such uploads, don't reply to the email.