+
+ /* Set the view to a calendar view */
+ CtdlGetRelationship(&vbuf, &CC->usersupp, &qr);
+ vbuf.v_view = 3; /* 3 = calendar */
+ CtdlSetRelationship(&vbuf, &CC->usersupp, &qr);
+
+ /* Create the tasks list room if it doesn't already exist */
+ create_room(USERTASKSROOM, 4, "", 0, 1, 0);
+
+ /* Set expiration policy to manual; otherwise objects will be lost! */
+ if (lgetroom(&qr, USERTASKSROOM)) {
+ lprintf(3, "Couldn't get the user calendar room!\n");
+ return;
+ }
+ qr.QRep.expire_mode = EXPIRE_MANUAL;
+ lputroom(&qr);
+
+ /* Set the view to a task list view */
+ CtdlGetRelationship(&vbuf, &CC->usersupp, &qr);
+ vbuf.v_view = 4; /* 4 = tasks */
+ CtdlSetRelationship(&vbuf, &CC->usersupp, &qr);
+