$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
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
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
+ );
+ }
}
return;
}
qr.QRep.expire_mode = EXPIRE_MANUAL;
+ qr.QRdefaultview = 3; /* 3 = calendar view */
lputroom(&qr);
/* Set the view to a calendar view */
return;
}
qr.QRep.expire_mode = EXPIRE_MANUAL;
+ qr.QRdefaultview = 4; /* 4 = tasks view */
lputroom(&qr);
/* Set the view to a task list view */
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)