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

    Filters UI

    SnappyMail
    5
    19
    464
    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.
    • girish
      girish Staff last edited by

      RainLoop had a UI for setting up common filters like vacation and forwarding. It seems SnappyMail has removed this, in favor of showing a raw sieve filter page.

      3c05b784-b720-41b2-a382-b3855b8e1ab6-image.png

      I guess I will post some common filters here.

      1 Reply Last reply Reply Quote 6
      • girish
        girish Staff last edited by

        Vacation mail is something like this:

        require ["vacation"];
        if true
        {
               vacation :subject "Out of office" "Off to the alps!";
        }
        
        1 Reply Last reply Reply Quote 1
        • girish
          girish Staff last edited by

          Forward all is something like this:

          require ["copy","fileinto","vacation"];
          
          if true
          {
                 redirect :copy "test@cloudron.io";
          }
          
          1 Reply Last reply Reply Quote 1
          • girish
            girish Staff last edited by

            I put some tutorials links in our docs - https://docs.cloudron.io/apps/snappymail/#filters

            1 Reply Last reply Reply Quote 4
            • D
              djmaze last edited by

              @girish SnappyMail should support the rainloop script as well (it's in the list named "rainloop.user").
              Difference is that SnappyMail also supports all other scripts and you can creat a script to include multiple scripts.

              I made it this way because i also use Kmail (and others like Thunderbird) and then RainLoop conflicts with them because in Sieve you can only enable 1 script and RainLoop disables them in favour of rainloop.user

              So you could finegrane your instructions how to combine/include scripts and still use the gui on the rainloop.user script.

              girish 1 Reply Last reply Reply Quote 5
              • girish
                girish Staff @djmaze last edited by girish

                @djmaze oh hey, welcome here! Indeed, each mail client seems to want to disable each other's filter, I think roundcube has a similar behavior. I had to check if include is enabled by default in dovecot and indeed it is - https://doc.dovecot.org/configuration_manual/sieve/pigeonhole_sieve_interpreter/

                Is there a plan to add a UI for setting up filters? I wish mail clients at least had a simple "Create filter from this" from the email view.

                Great progress with SnappyMail btw, it really is super fast loading.

                jdaviescoates D 2 Replies Last reply Reply Quote 3
                • jdaviescoates
                  jdaviescoates @girish last edited by

                  @girish said in Filters UI:

                  I wish mail clients at least had a simple "Create filter from this" from the email view.

                  +1

                  I use Cloudron with Gandi & Hetzner

                  1 Reply Last reply Reply Quote 1
                  • D
                    djmaze @girish last edited by

                    @girish thanks.

                    Oh yes, there are future plans but it is a lot of work to create a good gui.
                    The issue is at https://github.com/the-djmaze/snappymail/issues/80

                    But first i'm fixing the OpenPGP issues which also takes some time.

                    robi 1 Reply Last reply Reply Quote 4
                    • robi
                      robi @djmaze last edited by

                      @djmaze said in Filters UI:

                      it is a lot of work to create a good gui

                      Doesn't need to be net new from scratch. Be inspired.

                      You can borrow any such from an existing project and improve upon their shortcomings.

                      Easy, peasy. 😄

                      Life of Advanced Technology

                      P 1 Reply Last reply Reply Quote 0
                      • P
                        perler @robi last edited by

                        @robi ok, reviving this old thread, is this simple filter supposed to be working in snappymail or not?
                        a1ad3b8d-0976-4c26-89af-8075c0a2337d-image.png

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

                          @perler best to verify with the upstream project on that one.

                          Life of Advanced Technology

                          P 1 Reply Last reply Reply Quote 0
                          • P
                            perler @robi last edited by

                            @robi it should work according to this: https://github.com/the-djmaze/snappymail/issues/407

                            I would look for myself, but I am not sure where to start..

                            girish 1 Reply Last reply Reply Quote 0
                            • girish
                              girish Staff @perler last edited by

                              @perler Unfortunately, a quirk of sieve scripts is that only the webmail app that creates them, can reliably edit them. I guess this is because the sieve language parser of each of these web apps is a limited subset of what they can handle.

                              So.. it's best to not rely on the sieve filters of other apps. Instead, create the filters within snappy. Even though snappy is a fork of rainloop, it's best to think of them as separate apps.

                              1 Reply Last reply Reply Quote 0
                              • jdaviescoates
                                jdaviescoates last edited by

                                I've been giving SnappyMail a try (because I just can't get Roundcube to stay logged in which is a bit frustrating) and I see this:

                                Screenshot from 2022-08-17 17-24-58.png

                                I didn't add the roundcube thing, was there already.

                                I'm guessing/ hoping this is some clever Cloudron integration the @staff have done that automagically sucks in filters I've created over in Roundcube into SnappyMail?

                                And if it's not that, any idea what it is?

                                Thanks! 🙂

                                I use Cloudron with Gandi & Hetzner

                                girish 1 Reply Last reply Reply Quote 0
                                • girish
                                  girish Staff @jdaviescoates last edited by

                                  @jdaviescoates If you have roundcube still installed, delete the filters in roundcube entirely. If that doesn't do it, you might have to delete the file physically at /home/yellowtent/boxdata/mail/vmail/{user}/sieve/roundcube.sieve and restart the mail server.

                                  jdaviescoates 1 Reply Last reply Reply Quote 0
                                  • jdaviescoates
                                    jdaviescoates @girish last edited by

                                    @girish sorry, I don't want to delete the roundcube filters (not sure what gave you that impression?), I'm just wondering if SnappyMail is somehow magically making use of them given I'm seeing roundcube there in the SnappyMail filters UI?

                                    I use Cloudron with Gandi & Hetzner

                                    jdaviescoates girish 2 Replies Last reply Reply Quote 0
                                    • jdaviescoates
                                      jdaviescoates @jdaviescoates last edited by jdaviescoates

                                      @jdaviescoates said in Filters UI:

                                      I'm just wondering if SnappyMail is somehow magically making use of them given I'm seeing roundcube there in the SnappyMail filters UI?

                                      I just clicked on roundcube in the filters UI and it does indeed look like it probably is doing that!

                                      Screenshot from 2022-08-17 17-32-13.png

                                      Awesome! (presuming it works)

                                      I use Cloudron with Gandi & Hetzner

                                      1 Reply Last reply Reply Quote 1
                                      • girish
                                        girish Staff @jdaviescoates last edited by

                                        @jdaviescoates said in Filters UI:

                                        @girish sorry, I don't want to delete the roundcube filters (not sure what gave you that impression?),

                                        Sadly, only the filter of one app can be "active" . Also, there is this whole mess that filters created by one app are not easily editable (if at all), by another app. So, I assumed, you are going all in on snappy and nuking the rules created in other apps.

                                        jdaviescoates 1 Reply Last reply Reply Quote 1
                                        • jdaviescoates
                                          jdaviescoates @girish last edited by

                                          @girish said in Filters UI:

                                          Sadly, only the filter of one app can be "active"

                                          I don't really get what that means?

                                          I certainly looks like SnappyMail is automagically using the filters I set-up in roundcube.

                                          I use Cloudron with Gandi & Hetzner

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