+/* We can't know if the calendar room exists so we just create it at login */
+void ical_create_room(void)
+{
+ char roomname[ROOMNAMELEN];
+ struct quickroom qr;
+
+ /* Create the room if it doesn't already exist */
+ MailboxName(roomname, &CC->usersupp, USERCALENDARROOM);
+ create_room(roomname, 4, "", 0);
+ /* Set expiration policy to manual; otherwise objects will be lost! */
+ if (lgetroom(&qr, roomname)) {
+ lprintf(3, "Couldn't get the user calendar room!\n");
+ return;
+ }
+ qr.QRep.expire_mode = EXPIRE_MANUAL;
+ lputroom(&qr);
+ return;
+}
+
+
+/* User is reading a message */
+int ical_obj_beforeread(struct CtdlMessage *msg)
+{
+ return 0;
+}
+
+
+/* See if we need to prevent the object from being saved */