Miniflux filters?
-
I like that Miniflux is now available on Cloudron. However, there's something about this app that I'm struggling a little bit with. The filters; especially the syntax of block and keep rules. I am at a loss on how to implement such filters effectively. The documentation is a stub (for me), but probably more than enough for some of you guys with a better understanding.
Could anyone be so kind as to give an example on how to write multiple filters for a feed? I would be very grateful for such assistance.
Example - say I have a newspaper feed I subscribe to, but I am not interested in reading articles with the following characteristics:
- I want to filter out articles with the word "fashion"
- I also want to filter out articles with the word "car"
- Same with articles with the letters "holidayfu" in the headline (to filter out articles holidayfun, holidayfuture etc)
- I also want to filter out all articles with the numbers between 231-355 in the title
- And I would love to filter out articles with the words "foo" and "bar" in the subject, even if they don't appear immediately after each other
I have some (limited) experience with regex filters in TTRSS, and in TTRSS, I would write this as one (or more) filters like this:
(fashion|car|holidayfu|[2][3-5][1-5]|foo.*bar)
But I am struggling to understand how to implement such a rule set in Miniflux. Could anyone please give an example? I'd be really grateful.
Thanks a lot for any and all help, and once again, thanks for what looks like a really cool app!
Odie
-
-
You can use this format:
(?i)miniflux|mini|flux
To play with and learn new ones with explanations, use https://regex101.com
-
@nebulon Thanks, nebulon. Yes I have seen it, this is the documentation that was really confusing for me (but, as I said, I don't really understand how to write regex-filters, I just learned how to do it in TTRSS).
To illustrate, I understand that (?i)miniflux tells miniflux to ignore (delete, if in the "block rules" part) all articles containing the word minflux (case insensitive). But I struggle with the implications for more rules. And I struggle to understnad why the "?" character is used.
In my example above, would I be right in assuming that I could add this example to my filters like this?
((?i)miniflux|fashion|car|holidayfu|[2][3-5][1-5]|foo.*bar)
Also, does this mean that in Miniflux, the regex expressions are case sensitive by default? (they aren't in TTRSS).
Sorry for being a newbie...
Odie
-
You can use this format:
(?i)miniflux|mini|flux
To play with and learn new ones with explanations, use https://regex101.com
-
@odie said in Miniflux filters?:
@nebulon Thanks for following up - hopefully, it will. I haven't had the time to add feeds and test yet. Will report back
It seems filters are working as expected. Thanks a lot! One thing I'd love to see, though... (in Miniflux, not a Cloudron issue). It'd be great to be able to test the filters before turning them on. In TTRS, you can. I experienced how useful that was one time where I forgot to remove a trailing pipe symbol (|)... If I had implemented that filter, all articles would have been deleted...
I will post back here if I run into issues.
Thanks again.
-