Re: [Kolab-devel] Cyrus problems with folder-type in annotations.db missing first 4 characters after upgrade from Kolab2
Timotheus Pokorra <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kolab |
|---|---|
| Message-ID | <CAJ0=nQd7mJYMGwc=-P968o17vcqAA2WRQVZWm+R2Bu6iRN7vKg@mail.gmail.com> |
Hello all, I was still not happy with the solution of migrating Cyrus annotations.db from 32 bit to 64 bit. Now I have a simple bash script, which uses purely the Kolab 3.x pykolab commands for getting and setting the metadata, and only connects to the Kolab 3.x server. No need to connect to the old Kolab 2.x server, nor to parse the skiplist of annotations.db. Have a look here: https://gist.github.com/tpokorra/6775616 It will check for the folder-type, and using the names of the mailbox folder (in my case german folder names), to determine the proper folder type, where it is not clear (task and note). The script will show an error if the folder type cannot be determined. When you run the script the second time, there should not any output. This helped also to identify some issues of pykolab with Umlaut characters in the mailbox folder names, which I have reported in Bugzilla: https://issues.kolab.org/show_bug.cgi?id=2297 https://issues.kolab.org/show_bug.cgi?id=2253 https://issues.kolab.org/show_bug.cgi?id=2254 Hope this helps, Timotheus