- on delete, display important message, and trigger re-display of the queue
- re-add the refresh button which re-loads the page
- add ListOnly=yes to output just the table to replace not the full document.
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);
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);
wcsession *WCC = WC;
WCTemplputParams SubTP;
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);
- 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(yesbstr("ListOnly")?0:1);
<?!("COND:AIDE", 1)>
<br><br><div align="center">
<?_("You do not have permission to view this resource.")>
</div><br><br>
<?!("X", 1)>
<?!("COND:AIDE", 1)>
<br><br><div align="center">
<?_("You do not have permission to view this resource.")>
</div><br><br>
<?!("X", 1)>
<br><br><div align="center">
<?_("The queue is empty.")>
</div><br><br>
<br><br><div align="center">
<?_("The queue is empty.")>
</div><br><br>
<br><a href="javascript:SMTPRunQueue();"><?_("Reschedule all messages for delivery on next queue run")></a>
</div>
<br><a href="javascript:SMTPRunQueue();"><?_("Reschedule all messages for delivery on next queue run")></a>
</div>
-<table class="mailbox_summary" rules=rows cellpadding=2 style="width:100%%;">
-<tr><td><b><i>
-<?_("Message ID")>
-</i></b></td><td><b><i>
-<?_("Date/time submitted")>
-</i></b></td><td><b><i>
-<?_("Next attempt")>
-</i></b></td><td><b><i>
-<?_("Sender")>
-</i></b></td><td><b><i>
-<?_("Recipients")>
-</i></b></td></tr>
+<div align="center">
+<a href="javascript:RefreshSMTPqueueDisplay();"><?_("Refresh this page")></a>
+</div>
--- /dev/null
+<div id="mailqueue_list">
+<table class="mailbox_summary" rules=rows cellpadding=2 style="width:100%%;">
+<tr><td><b><i>
+<?_("Message ID")>
+</i></b></td><td><b><i>
+<?_("Date/time submitted")>
+</i></b></td><td><b><i>
+<?_("Next attempt")>
+</i></b></td><td><b><i>
+<?_("Sender")>
+</i></b></td><td><b><i>
+<?_("Recipients")>
+</i></b></td></tr>
}
function RefreshSMTPqueueDisplay() {
}
function RefreshSMTPqueueDisplay() {
- new Ajax.Updater('smtpqueue_inner_div',
- 'display_smtpqueue_inner_div', { method: 'get',
+ new Ajax.Updater('mailqueue_list',
+ 'dotskip?room=__CitadelSMTPspoolout__&view=11&ListOnly=yes', { method: 'get',
parameters: Math.random() } );
}
parameters: Math.random() } );
}
'ajax_servcmd', {
method: 'post',
parameters: p,
'ajax_servcmd', {
method: 'post',
parameters: p,
- onComplete: RefreshSMTPqueueDisplay()
+ onComplete: function(transport) { ajax_important_message(transport.responseText.substr(4)); RefreshSMTPqueueDisplay();}