projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SMTP-Queue: streamline redisplaying
[citadel.git]
/
webcit
/
smtpqueue.c
diff --git
a/webcit/smtpqueue.c
b/webcit/smtpqueue.c
index 0ce44e3281f6f169a1aa14dd760799525093475d..360886380e69347663f08b1a9fd24a153c83a791 100644
(file)
--- a/
webcit/smtpqueue.c
+++ b/
webcit/smtpqueue.c
@@
-311,7
+311,10
@@
ServerStartModule_SMTP_QUEUE
int qview_PrintPageHeader(SharedMessageStatus *Stat, void **ViewSpecific)
{
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;
}
return 0;
}
@@
-333,7
+336,10
@@
int qview_GetParamsGetServerCall(SharedMessageStatus *Stat,
else {
snprintf(cmd, len, "MSGS ALL|0|1");
snprintf(filter, flen, "SUBJ|QMSG");
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;
}
}
return 200;
}
}
@@
-364,16
+370,22
@@
int qview_RenderView_or_Tail(SharedMessageStatus *Stat,
wcsession *WCC = WC;
WCTemplputParams SubTP;
wcsession *WCC = WC;
WCTemplputParams SubTP;
- if (
GetCount(WCC->summ) == 0
)
- DoTemplate(HKEY("view_mailq_footer_
empt
y"),NULL, &SubTP);
+ if (
yesbstr("ListOnly")
)
+ DoTemplate(HKEY("view_mailq_footer_
listonl
y"),NULL, &SubTP);
else
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)
{
return 0;
}
int qview_Cleanup(void **ViewSpecific)
{
- wDumpContent(1);
+
+ wDumpContent(yesbstr("ListOnly")?0:1);
return 0;
}
return 0;
}