repairing a calendar

Ken Murchison murch at fastmail.com
Wed Dec 20 14:57:22 EST 2017


The mailbox types for the broken user's DAV mailboxes are wrong. Type 0 
(zero) says its a regular email mailbox.  You'll have to change them to 
32 for calendars and 64 for addressbooks.



On 12/20/2017 02:54 PM, Wolfgang Breyha wrote:
> On 20/12/17 17:35, Ken Murchison wrote:
>> Try:
>>
>> dav_reconstruct <userid>
> Oh sorry, didn't find that one... but doing so removes the <userid>.dav
> file without generating a new one. So I assume that something happend
> XFERing that mailbox destroying important information about DAV mailboxes.
>
> strace shows that dav_reconstruct unlinks the DB and scans mailboxes.db
> afterwards. And then it ends without further steps.
>
> Looking at a ctl_mboxlist dump...
> $ ctl_mboxlist -d|grep user.<brokenuid>
> user.<brokenuid>.#addressbooks  0 part18 <brokenuid>    lrswipkxtecdan
> user.<brokenuid>.#addressbooks.Default  0 part18 <brokenuid>    lrswipkxtecdan
> user.<brokenuid>.#calendars     0 part18 <brokenuid>    lrswipkxtecdan
> user.<brokenuid>.#calendars.Default     0 part18 <brokenuid>    lrswipkxtecdan
> user.<brokenuid>.#calendars.Inbox       0 part18 <brokenuid>    lrswipkxtecdan
> user.<brokenuid>.#calendars.Outbox      0 part18 <brokenuid>    lrswipkxtecdan
>
> compared to a working one...
> user.<gooduid>.#addressbooks    64 part06 <gooduid>     lrswipkxtecdan
> user.<gooduid>.#addressbooks.Default    64 part06 <gooduid>     lrswipkxtecdan
> user.<gooduid>.#calendars       32 part06 <gooduid>     lrswipkxtecdan
> user.<gooduid>.#calendars.Default       32 part06 <gooduid>     lrswipkxtecdan
> user.<gooduid>.#calendars.Inbox 32 part06 <gooduid>     lrswipkxtecdan
> user.<gooduid>.#calendars.Outbox        32 part06 <gooduid>     lrswipkxtecdan
>
> I guess there are missing important flags on those DAV folders. Most likely
> "lost in translation^WXFER". Should I file a bug?
>
> BTW....(ab)using dav_reconstruct with user.<userid> instead of <userid>
> causes a SIGSEGV.
>
> Greetings, Wolfgang

-- 
Kenneth Murchison
Cyrus Development Team
FastMail Pty Ltd



More information about the Info-cyrus mailing list