else wprintf("<A HREF=\"/readfwd?alpha=1\">(other)</A>\n");
wprintf("<HR width=100%%>\n");
}
- if ((WC->wc_view == 3) && (maxmsgs > 1)) {
+ if (WC->wc_view == 3) { /* calendar */
is_calendar = 1;
strcpy(cmd, "MSGS ALL");
maxmsgs = 32767;
}
- if ((WC->wc_view == 4) && (maxmsgs > 1)) {
- is_calendar = 1;
+ if (WC->wc_view == 4) { /* tasks */
+ is_tasks = 1;
strcpy(cmd, "MSGS ALL");
maxmsgs = 32767;
+ wprintf("<UL>");
}
nummsgs = load_msg_ptrs(cmd);
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.
*/