Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Miniflux filters?

    Miniflux
    3
    10
    480
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      odie last edited by

      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

      nebulon 1 Reply Last reply Reply Quote 1
      • Topic has been marked as a question  nebulon nebulon 
      • robi
        robi last edited by

        You can use this format: (?i)miniflux|mini|flux

        To play with and learn new ones with explanations, use https://regex101.com

        Life of Advanced Technology

        1 Reply Last reply Reply Quote 3
        • nebulon
          nebulon Staff @odie last edited by

          @odie have you seen https://miniflux.app/docs/rules.html yet?

          O 1 Reply Last reply Reply Quote 0
          • O
            odie @nebulon last edited by

            @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

            O 1 Reply Last reply Reply Quote 1
            • robi
              robi last edited by

              You can use this format: (?i)miniflux|mini|flux

              To play with and learn new ones with explanations, use https://regex101.com

              Life of Advanced Technology

              1 Reply Last reply Reply Quote 3
              • O
                odie @odie last edited by

                @odie Thanks. So basically, the same filtering as TTRSS, except everything is one line. Appreciate it!

                nebulon 1 Reply Last reply Reply Quote 1
                • nebulon
                  nebulon Staff @odie last edited by

                  @odie did this solve your issue in the end?

                  O 1 Reply Last reply Reply Quote 0
                  • O
                    odie @nebulon last edited by

                    @nebulon Thanks for following up - hopefully, it will. I haven't had the time to add feeds and test yet. Will report back 🙂

                    O 1 Reply Last reply Reply Quote 1
                    • O
                      odie @odie last edited by

                      @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.

                      robi 1 Reply Last reply Reply Quote 1
                      • Topic has been marked as solved  girish girish 
                      • robi
                        robi @odie last edited by

                        @odie that's a suggestions you can make upstream at the miniflux github repo.

                        Life of Advanced Technology

                        O 1 Reply Last reply Reply Quote 0
                        • O
                          odie @robi last edited by

                          @robi said in Miniflux filters?:

                          @odie that's a suggestions you can make upstream at the miniflux github repo.

                          Good idea. I just did that!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Powered by NodeBB