Page 1 of 3

Help with filters

Posted: 07 Jul 2015, 02:08
by SimbaLion
Hi, I'm not sure what I'm doing wrong.

I've got one filter which matches some simple strings and stars posts with those words or strings. I've got another filter which matches unwanted strings and deletes posts with those strings, however, posts with the unwanted strings are still showing up.

At first, the delete filter was at the top of the order, and when it wasn't working, I tried moving it to the bottom of the order, and it still isn't working. Matching is happening properly according to tests.

Any help is appreciated.

Re: Help with filters

Posted: 07 Jul 2015, 03:50
by JustAMacUser
Maybe post the regex for us to take a look.

Re: Help with filters

Posted: 07 Jul 2015, 04:17
by SimbaLion
JustAMacUser wrote:Maybe post the regex for us to take a look.


How would that help? As I said, matching is working properly according to tests.

The regex are things like:

Starred: (blue|red|green)
Deleted: (anxiety|violence|greed)

As I said, very simple string searches.

Re: Help with filters

Posted: 07 Jul 2015, 05:34
by JustAMacUser
Because the "test" button and the actual matching during feed fetching perform differently and depending on syntax one may work while the other doesn't.

So, post your real filters and we can maybe help.

Re: Help with filters

Posted: 07 Jul 2015, 06:03
by SimbaLion
JustAMacUser wrote:Because the "test" button and the actual matching during feed fetching perform differently and depending on syntax one may work while the other doesn't.

So, post your real filters and we can maybe help.


I did post my real filters.

Re: Help with filters

Posted: 07 Jul 2015, 06:56
by JustAMacUser
What about the rest of your settings: invert, match all, etc.? What field(s) are you trying to match (content, title, etc.)? What are those set to?

If you change the delete rule to star, do the articles then get starred or are they still unmatched?

Re: Help with filters

Posted: 07 Jul 2015, 07:38
by sleeper_service
it's pretty obvious that he doesn't WANT help :D

Re: Help with filters

Posted: 07 Jul 2015, 08:09
by fox
f D on a feed in question would open feed debugger, post logs here, op

Re: Help with filters

Posted: 07 Jul 2015, 08:42
by SimbaLion
fox wrote:f D on a feed in question would open feed debugger, post logs here, op


I'm sorry I dont understand what f D means, is that a setting somewhere? If there's a way to see logs of the filtering I'll probably be able to solve this on my own.

Re: Help with filters

Posted: 07 Jul 2015, 08:50
by fox
it's a keyboard shortcut you use while the feed is open in tt-rss

when the debugger opens check both checkboxes

Re: Help with filters

Posted: 08 Jul 2015, 22:23
by SimbaLion
Thank you, I gave that a try and while examining the log it occured to me, the posts which have slipped past the filter tend to be several paragraphs, with the filtered word appearing at the very end. Perhaps the issue is that the xml feed does not itself contain the filtered word.

I am going to test using a string of words from the top of the post, this is from a known spammer so it is always the same line of text.

Do I need to escape punctuation? In this case a question mark appears mid-string.

Re: Help with filters

Posted: 08 Jul 2015, 23:00
by fox
it is regular expressions so i'd say yes, ? is a operator

Re: Help with filters

Posted: 09 Jul 2015, 00:13
by JustAMacUser
Do I need to escape punctuation? In this case a question mark appears mid-string.


... So I guess those were not your real regex values... ;-)

Just saying, the issue could have been resolved quicker.

Re: Help with filters

Posted: 10 Jul 2015, 00:46
by SimbaLion
fox wrote:it is regular expressions so i'd say yes, ? is a operator


Oh right, I had forgotten. Still, there were no punctuation in my original regex, only simple words.

I'm looking at the log but to be honest I have no idea what I'm looking at, and nothing jumps out at me as the issue, should I post a log excerpt?

Re: Help with filters

Posted: 10 Jul 2015, 01:14
by fox
there should be a "article filters:" thing which should show filters matching each article

don't forget to check force_rehash btw