Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Filter Rules disappearing

    Kopano Groupware Core
    11
    62
    5738
    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.
    • ashceryth
      ashceryth last edited by

      I recreated 4 rules with conditions on sender address and content of subject only. Those seem to work, as they get applied and don’t disappear. So it seems it has to do with the condition of the rule…

      1 Reply Last reply Reply Quote 0
      • jengelh
        jengelh Banned last edited by

        The only way this is gonna get resolved is to track the table delete/modify event and see what client it was issued from, i.e. custom build and diagnosis.

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

          @jengelh, I think there is nothing deleted in the database as all rules reappear when using the same database with an older (working) version of kopano-core, as my tests showed about half a year ago. So the rules seem to simply becoming invisible.

          1 Reply Last reply Reply Quote 0
          • Christoph.Goth
            Christoph.Goth last edited by

            The Problem seems so occure when “dumping” the rules for the dagent (?) to process the mails while arriving.

            I’v made the same discovery as @ashceryth, the rules get listed as long as no mail arrives. After the first mail being proccessed after editing the ruleset they disappear in the webapp and kopani-ibrules and none (!) get processed anymore. Using python kopano-rules.py i can list and modify them, after deleting any Rule-Entry - so the rule-set gets smaller again - they reappear and get prosessed again! Ther seems to be a point of summary rulesize where the problem beginns.

            My rules are mostly based on “if senders-Adress contains X, move to folder Y”.
            It doesnt mather, if i use one very big rule oder a few smaller ones, after some numbers of entrys the problem occures again and again, only solution is to delete a rule entry so the rest is working again…

            1 Reply Last reply Reply Quote 0
            • jengelh
              jengelh Banned last edited by

              I smell a cache issue. (I tested and can reproduce now; kopano-srvadm --purge-cache=all makes it visible.)

              ashceryth 1 Reply Last reply Reply Quote 0
              • ashceryth
                ashceryth @jengelh last edited by

                @jengelh Great that you are on to something now. You mean kopano-srvadm --purge-cache=all makes the rules visible again?

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

                  I cleared the cache with kopano-srvadm --clear-cache=all after the rules disappeared (~20 rules) and they didn’t came back. With kopano-backup --only-meta -u <username> -f Inbox the rules file was empty but with SELECT h.owner, val_binary FROM properties AS p INNER JOIN hierarchy AS h ON p.hierarchyid=h.id WHERE tag=0x3FE1 all rules were listed in the output. So everything was still in the db. I can go up to about ~15 simple rules (if sender address is X move to folder Y) until the rules disappear.

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

                    My rules went back after running ‘kopano-cli --clear-cache’

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

                      Okay, my rules came back after the “clear-cache”, but only one of them is working: it’s the one with the ‘subject-rule’.
                      All with ‘sent-to-rules’ don’t work …

                      1 Reply Last reply Reply Quote 0
                      • jengelh
                        jengelh Banned last edited by

                        Anyway it’s fixed in 8.6.90.80 / 8.7.80.283 and newer.

                        bmaehr freyuh 2 Replies Last reply Reply Quote 1
                        • bmaehr
                          bmaehr @jengelh last edited by

                          @jengelh Thank you!

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

                            @jengelh

                            Thanks!

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

                              @jengelh

                              Thanks!

                              1 Reply Last reply Reply Quote 0
                              • freyuh
                                freyuh @jengelh last edited by

                                @jengelh said in Filter Rules disappearing:

                                Anyway it’s fixed in 8.6.90.80 / 8.7.80.283 and newer.

                                I have installed the update, but nothing has changed: only the ‘subject rule’ works …
                                Do I have to do someting more than installing the fix?

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

                                  Hello,

                                  maybe the error is with the email-address?

                                  I went through all email addresses and did a ‘save’ without changing the addresses.
                                  Before the 'update I got following content:

                                   *  PR_RULE_CONDITION:
                                       *  RES_SUBRESTRICTION subobject PR_MESSAGE_RECIPIENTS
                                           *  RES_COMMENT
                                               *  Restriction:
                                                   *  RES_PROPERTY 0x300b0102 == binary("SMTP:ENBW@UELLERN.DE")
                                               *  tag 0x60000003 1
                                               *  tag 0x00010102 binary("SMTP:ENBW@UELLERN.DE")
                                               *  tag 0x0001001f "enbw@uellern.de <enbw@uellern.de>"
                                               *  PR_DISPLAY_TYPE 0
                                  

                                  And after the ‘update’ I got:

                                   *  PR_RULE_CONDITION:
                                       *  RES_SUBRESTRICTION subobject PR_MESSAGE_RECIPIENTS
                                           *  RES_COMMENT
                                               *  Restriction:
                                                   *  RES_PROPERTY 0x300b0102 == binary("SMTP:ENBW@UELLERN.DE\0")
                                               *  tag 0x60000003 1
                                               *  tag 0x00010102 binary("SMTP:ENBW@UELLERN.DE\0")
                                               *  tag 0x0001001f "enbw@uellern.de <enbw@uellern.de>"
                                               *  PR_DISPLAY_TYPE 0
                                  

                                  So the addresses have changed a little. There has been added a ‘\0’ after each address …

                                  Now I’m waiting if ‘save’ did the job …

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

                                    Now the email-rules are working too …

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post