<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Also,</p>
    <p>If DaviCal can export/dump a single calendar as one big iCalendar
      stream, you can bulk import that into Cyrus with:</p>
    <p><br>
    </p>
    <p>POST /dav/calendars/user/<userid>/<calname> HTTP/1.1<br>
      Host: <hostname><br>
      Content-Type: text/calendar<br>
      Content-Length: <nnn></p>
    <p>BEGIN:VCALENDAR<br>
      ...<br>
      BEGIN:VEVENT<br>
      ...<br>
      END:VEVENT<br>
      BEGIN:VEVENT<br>
      ...<br>
      END:VCALENDAR</p>
    <p><br>
    </p>
    <p>Where <calname> will be "Default" for a new user.  Yes
      "Default" was a shitty choice but it corresponds to the default
      calendar collection in CalDAV scheduling parlance.  <br>
    </p>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 05/04/2017 01:16 PM, Ken Murchison
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5e021c93-e2b5-4a2c-b1b3-ca022c813fe7@andrew.cmu.edu">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>Hi Nic,</p>
      <p>Try adding the following header to your authenticated (as
        admin) requests:<br>
      </p>
      <p> Authorize-As: <userid></p>
      <p><br>
      </p>
      <p>This *should* allow the admin to proxy as the specified user. 
        There currently isn't any standard for proxy auth in HTTP, so I
        manufactured by own header to do so.  This is how a frontend
        server in a Murder proxies requests to the backend as the given
        user.<br>
      </p>
      <p><br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 05/04/2017 12:00 PM, Nic Bernstein
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:40acc6b3-5c7e-7dff-597c-3663c3cb7303@onlight.com">
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        Ken,<br>
        I'm back to the project of trying to migrate my own Cal/CardDav
        users from DaviCal to Cyrus 3.  Problem I'm faced with is that
        other than myself, my users do not have #calendars or
        #addressbooks in the Cyrus mail store.  Thus my migration script
        fails, as destination collections do not exist.<br>
        <br>
        I do have "<code class="docutils literal"><span class="pre"><span
              class="highlighted">caldav</span>_create_default:</span></code>
        1" set, but when pointing a browser to "<a
          class="moz-txt-link-freetext"
          href="http://newjiji:8008/dav/calendars/user/"
          moz-do-not-send="true">http://newjiji:8008/dav/calendars/user/</a><userid>"
        for users who don't already have the collections created, I get
        a 404 error "Mailbox does not exist."<br>
        <br>
        So my question is, how does one get these users primed?  My
        migration scripts use the administrative user to connect and
        perform the work, so such connection is not happening as the
        user themselves.  If my only recourse is to make each user
        connect a calendar client, then I'll do that, but I don't think
        that scales well.<br>
        <br>
        My concern here is dealing with sites which, like our own, have
        already deployed a CalDav solution and are looking to migrate to
        the inbuilt solution on Cyrus.<br>
        <br>
        Any thoughts?<br>
        <br>
        Cheers,<br>
            -nic<br>
        <pre class="moz-signature" cols="72">-- 
Nic Bernstein                             <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com" moz-do-not-send="true">nic@onlight.com</a>
Onlight, Inc.                             <a class="moz-txt-link-abbreviated" href="http://www.onlight.com" moz-do-not-send="true">www.onlight.com</a>
6525 W Bluemound Road, Suite 24           v. 414.272.4477
Milwaukee, Wisconsin  53213-4073
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University
</pre>
  </body>
</html>