projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
55e09ed
)
* Fix smtp queue display
author
Art Cancro
<ajc@citadel.org>
Thu, 3 Sep 2009 15:11:03 +0000
(15:11 +0000)
committer
Art Cancro
<ajc@citadel.org>
Thu, 3 Sep 2009 15:11:03 +0000
(15:11 +0000)
webcit/smtpqueue.c
patch
|
blob
|
history
diff --git
a/webcit/smtpqueue.c
b/webcit/smtpqueue.c
index 9014cd6c9cfb5c0563110b8c34f00110fa94a5e0..f1310a6ad0ac6023c3654a4af4d00058e78ccf6e 100644
(file)
--- a/
webcit/smtpqueue.c
+++ b/
webcit/smtpqueue.c
@@
-180,6
+180,9
@@
void display_smtpqueue_inner_div(void) {
FreeStrBuf(&Buf);
if (!strcasecmp(ChrPtr(WCC->wc_roomname), "__CitadelSMTPspoolout__")) {
FreeStrBuf(&Buf);
if (!strcasecmp(ChrPtr(WCC->wc_roomname), "__CitadelSMTPspoolout__")) {
+ Stat.maxload = 10000;
+ Stat.lowest_found = (-1);
+ Stat.highest_found = (-1);
num_msgs = load_msg_ptrs("MSGS ALL", &Stat);
if (num_msgs > 0) {
wprintf("<table class=\"mailbox_summary\" rules=rows "
num_msgs = load_msg_ptrs("MSGS ALL", &Stat);
if (num_msgs > 0) {
wprintf("<table class=\"mailbox_summary\" rules=rows "
@@
-200,13
+203,9
@@
void display_smtpqueue_inner_div(void) {
for (i=0; i<num_msgs; ++i) {
Msg = GetMessagePtrAt(i, WCC->summ);
for (i=0; i<num_msgs; ++i) {
Msg = GetMessagePtrAt(i, WCC->summ);
- if (Msg) {
- lprintf(9, "%d of %d: %ld\n", i, num_msgs, Msg->msgnum);
+ if (Msg != NULL) {
display_queue_msg(Msg->msgnum);
}
display_queue_msg(Msg->msgnum);
}
- else {
- lprintf(9, "%d of %d: is NULL!\n", i, num_msgs);
- }
}
wprintf("</table>");
}
wprintf("</table>");