* Set default view for new user Calendar> rooms to 3 (calendar)
authorArt Cancro <ajc@citadel.org>
Tue, 14 Jan 2003 04:12:26 +0000 (04:12 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 14 Jan 2003 04:12:26 +0000 (04:12 +0000)
* Set default view for new user Tasks> rooms to 4 (tasks)

citadel/ChangeLog
citadel/room_ops.c
citadel/serv_calendar.c
citadel/techdoc/session.txt

index 9fa3b27f9bd353da11a7349a183330e90d0b4e05..9c40d6dee4b0d169946dc0001db59fa863bdbbc7 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 601.108  2003/01/14 04:12:26  ajc
+ * Set default view for new user Calendar> rooms to 3 (calendar)
+ * Set default view for new user Tasks> rooms to 4 (tasks)
+
  Revision 601.107  2003/01/13 17:04:19  ajc
  * Add a sample URL view command for Macintosh in the included citadel.rc
 
@@ -4367,4 +4371,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index 26304187b7116e3de0d837673c1ac672aa106fc8..fdba64de0fb1ab0f5d461064091b89b6dc067201 100644 (file)
@@ -806,19 +806,28 @@ void usergoto(char *where, int display_result, int transiently,
        if (retmsgs != NULL) *retmsgs = total_messages;
        if (retnew != NULL) *retnew = new_messages;
        lprintf(9, "<%s> %d new of %d total messages\n",
-               CC->quickroom.QRname, new_messages, total_messages);
+               CC->quickroom.QRname,
+               new_messages, total_messages
+       );
 
-       if (display_result)
-               cprintf("%d%c%s|%d|%d|%d|%d|%ld|%ld|%d|%d|%d|%d|%d\n",
+       if (display_result) {
+               cprintf("%d%c%s|%d|%d|%d|%d|%ld|%ld|%d|%d|%d|%d|%d|%d|\n",
                        CIT_OK, CtdlCheckExpress(),
                        truncated_roomname,
-                       new_messages, total_messages,
-                       info, CC->quickroom.QRflags,
-                       CC->quickroom.QRhighest,
-                       vbuf.v_lastseen,
-                       rmailflag, raideflag, newmailcount,
-                       CC->quickroom.QRfloor,
-                       vbuf.v_view);
+                       (int)new_messages,
+                       (int)total_messages,
+                       (int)info,
+                       (int)CC->quickroom.QRflags,
+                       (long)CC->quickroom.QRhighest,
+                       (long)vbuf.v_lastseen,
+                       (int)rmailflag,
+                       (int)raideflag,
+                       (int)newmailcount,
+                       (int)CC->quickroom.QRfloor,
+                       (int)vbuf.v_view,
+                       (int)CC->quickroom.QRdefaultview
+               );
+       }
 }
 
 
index 60d6db9471414d114ccef06fed662e84cbf53298..0331dde22c479aded531f9ca1eaf27b3d1c09685 100644 (file)
@@ -1013,6 +1013,7 @@ void ical_create_room(void)
                return;
        }
        qr.QRep.expire_mode = EXPIRE_MANUAL;
+       qr.QRdefaultview = 3;   /* 3 = calendar view */
        lputroom(&qr);
 
        /* Set the view to a calendar view */
@@ -1029,6 +1030,7 @@ void ical_create_room(void)
                return;
        }
        qr.QRep.expire_mode = EXPIRE_MANUAL;
+       qr.QRdefaultview = 4;   /* 4 = tasks view */
        lputroom(&qr);
 
        /* Set the view to a task list view */
index 2f0907a975e6a8abbaf353103d4040e08c80b7a5..a9d5710f89136f68f8d2da8d609e3c4961c1e334 100644 (file)
@@ -413,7 +413,13 @@ a regular Aide (this makes access checks easy).
    9. The number of new Mail messages the user has (useful for alerting the
 user to the arrival of new mail during a session)
   10. The floor number this room resides on
-  11. The current "view" for this room (see views.txt for more info)
+  11. The *current* "view" for this room (see views.txt for more info)
+  12. The *default* "view" for this room
+ The default view gives the client a hint as to what views the user should
+be allowed to select.  For example, it would be confusing to allow messages
+in a room intended for calendar items.  The server does not enforce these
+restrictions, though.
 
 
  MSGS   (get pointers to MeSsaGeS in this room)