*/
void dummy_section(void) {
svput("BOXTITLE", WCS_STRING, "(dummy section)");
- do_template("beginbox", NULL);
+ do_template("beginboxx", NULL);
wprintf(_("(nothing)"));
do_template("endbox", NULL);
}
*/
void tasks_section(void) {
int num_msgs = 0;
- int i;
+ HashPos *at;
+ const char *HashKey;
+ long HKLen;
+ void *vMsg;
+ message_summary *Msg;
+ struct wcsession *WCC = WC;
gotoroom("_TASKS_");
- if (WC->wc_view != VIEW_TASKS) {
+ if (WCC->wc_view != VIEW_TASKS) {
num_msgs = 0;
}
else {
wprintf("</i><br />\n");
}
else {
- for (i=0; i<num_msgs; ++i) {
- display_task(WC->msgarr[i], 0);
+ at = GetNewHashPos(WCC->summ, 0);
+ while (GetNextHashPos(WCC->summ, at, &HKLen, &HashKey, &vMsg)) {
+ Msg = (message_summary*) vMsg;
+ display_task(Msg, 0);
}
}
*/
void calendar_section(void) {
int num_msgs = 0;
- int i;
+ HashPos *at;
+ const char *HashKey;
+ long HKLen;
+ void *vMsg;
+ message_summary *Msg;
+ struct wcsession *WCC = WC;
+ struct calview c;
gotoroom("_CALENDAR_");
if ( (WC->wc_view != VIEW_CALENDAR) && (WC->wc_view != VIEW_CALBRIEF) ) {
num_msgs = load_msg_ptrs("MSGS ALL", 0);
}
+ parse_calendar_view_request(&c);
+
if (num_msgs < 1) {
wprintf("<i>");
wprintf(_("(Nothing)"));
wprintf("</i><br />\n");
}
else {
- for (i=0; i<num_msgs; ++i) {
- display_calendar(WC->msgarr[i], 0);
+ at = GetNewHashPos(WCC->summ, 0);
+ while (GetNextHashPos(WCC->summ, at, &HKLen, &HashKey, &vMsg)) {
+ Msg = (message_summary*) vMsg;
+ load_calendar_item(Msg, 0, &c);
}
calendar_summary_view();
}