Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of sieve scripts got out of sync with the #sieve folder #4935

Open
alecpl opened this issue Jun 18, 2024 · 2 comments
Open

List of sieve scripts got out of sync with the #sieve folder #4935

alecpl opened this issue Jun 18, 2024 · 2 comments

Comments

@alecpl
Copy link
Contributor

alecpl commented Jun 18, 2024

Cyrus 3.6.3 with Murder.

For some reason the list of scripts stored in the sqlite index got out-of-sync with the content of the #sieve folder. It might have been our fault when we did some data migration. Right now we can't say it got broken during normal operation.

To find out what's going on encountered some issues:

  1. reconstructing the #sieve folder didn't fix the issue (it did not de-activate nor remove records from sieve_scripts table).
  2. dav.db file is not mentioned at https://www.cyrusimap.org/3.8/imap/concepts/deployment/databases.html, sieve is mentioned in DAV Index (<userid>.dav) section, but the file is dav.db not <userid>.dav. If it was properly documented or the file was sieve.db we would find the issue faster.
  3. maybe accessing a sieve script that exists in the sieve_scripts table, but not in the #sieve folder should trigger re-sync?

It would be much easier if 1. or 3. just worked for this case, but documentation could be clearer too.

@ksmurchison
Copy link
Contributor

Did you try a dav_reconstruct on the user in question? dav_reconstruct is what updates the DAV DB.

@alecpl
Copy link
Contributor Author

alecpl commented Jul 3, 2024

It wasn't me dealing with the server, but I believe my colleague used just the normal reconstruct on the folder, not dav_reconstruct on a user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants