/*
- * $Id$
- *
* Display the outbound SMTP queue
*/
Stat.maxload = 10000;
Stat.lowest_found = (-1);
Stat.highest_found = (-1);
- num_msgs = load_msg_ptrs("MSGS ALL", &Stat);
+ num_msgs = load_msg_ptrs("MSGS ALL", &Stat, NULL);
if (num_msgs > 0) {
wc_printf("<table class=\"mailbox_summary\" rules=rows "
"cellpadding=2 style=\"width:100%%;\">"
wc_printf(_("Recipients"));
wc_printf("</i></b></td></tr>\n");
- for (i=0; i<num_msgs; ++i) {
+ for (i=0; (i < num_msgs) && (i < Stat.maxload); ++i) {
Msg = GetMessagePtrAt(i, WCC->summ);
if (Msg != NULL) {
display_queue_msg(Msg->msgnum);