X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;ds=sidebyside;f=webcit%2Fsmtpqueue.c;h=360886380e69347663f08b1a9fd24a153c83a791;hb=388112362d2dfec7d6e517727251d7dd092b3e65;hp=0ce44e3281f6f169a1aa14dd760799525093475d;hpb=dd35736bbee921049196fd492a08b6a0de85eb15;p=citadel.git diff --git a/webcit/smtpqueue.c b/webcit/smtpqueue.c index 0ce44e328..360886380 100644 --- a/webcit/smtpqueue.c +++ b/webcit/smtpqueue.c @@ -311,7 +311,10 @@ ServerStartModule_SMTP_QUEUE int qview_PrintPageHeader(SharedMessageStatus *Stat, void **ViewSpecific) { - output_headers(1, 1, 1, 0, 0, 0); + if (yesbstr("ListOnly")) + output_headers(1, 0, 0, 0, 0, 0); + else + output_headers(1, 1, 1, 0, 0, 0); return 0; } @@ -333,7 +336,10 @@ int qview_GetParamsGetServerCall(SharedMessageStatus *Stat, else { snprintf(cmd, len, "MSGS ALL|0|1"); snprintf(filter, flen, "SUBJ|QMSG"); - DoTemplate(HKEY("view_mailq_header"), NULL, NULL); + if (yesbstr("ListOnly")) + DoTemplate(HKEY("view_mailq_table"), NULL, NULL); + else + DoTemplate(HKEY("view_mailq_header"), NULL, NULL); return 200; } } @@ -364,16 +370,22 @@ int qview_RenderView_or_Tail(SharedMessageStatus *Stat, wcsession *WCC = WC; WCTemplputParams SubTP; - if (GetCount(WCC->summ) == 0) - DoTemplate(HKEY("view_mailq_footer_empty"),NULL, &SubTP); + if (yesbstr("ListOnly")) + DoTemplate(HKEY("view_mailq_footer_listonly"),NULL, &SubTP); else - DoTemplate(HKEY("view_mailq_footer"),NULL, &SubTP); - + { + if (GetCount(WCC->summ) == 0) + DoTemplate(HKEY("view_mailq_footer_empty"),NULL, &SubTP); + else + DoTemplate(HKEY("view_mailq_footer"),NULL, &SubTP); + } + return 0; } int qview_Cleanup(void **ViewSpecific) { - wDumpContent(1); + + wDumpContent(yesbstr("ListOnly")?0:1); return 0; }