int num_displayed = 0;
int is_summary = 0;
int is_addressbook = 0;
+ int is_calendar = 0;
+ int is_tasks = 0;
int remaining_messages;
int lo, hi;
int lowest_displayed = (-1);
else wprintf("<A HREF=\"/readfwd?alpha=1\">(other)</A>\n");
wprintf("<HR width=100%%>\n");
}
+ if (WC->wc_view == 3) { /* calendar */
+ is_calendar = 1;
+ strcpy(cmd, "MSGS ALL");
+ maxmsgs = 32767;
+ }
+ if (WC->wc_view == 4) { /* tasks */
+ is_tasks = 1;
+ strcpy(cmd, "MSGS ALL");
+ maxmsgs = 32767;
+ wprintf("<UL>");
+ }
nummsgs = load_msg_ptrs(cmd);
if (nummsgs == 0) {
else if (is_addressbook) {
display_addressbook(WC->msgarr[a], alpha);
}
+ else if (is_calendar) {
+ display_calendar(WC->msgarr[a]);
+ }
+ else if (is_tasks) {
+ display_task(WC->msgarr[a]);
+ }
else {
read_message(WC->msgarr[a]);
}
wprintf("</TABLE>\n");
}
+ if (is_tasks) {
+ wprintf("</UL>\n"
+ "<A HREF=\"/display_edit_task?msgnum=0\">"
+ "Add new task</A>\n"
+ );
+ }
+
/* Bump these because although we're thinking in zero base, the user
* is a drooling idiot and is thinking in one base.
*/