Commit Graph

19 Commits

Author SHA1 Message Date
Thomas Lamprecht
4ebc52dd2d postfix mailq admin: avoid early load by updating nodename only if changed
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 17:58:17 +02:00
Thomas Lamprecht
bef394fcce PostfixMailQ eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 17:58:17 +02:00
Thomas Lamprecht
9db8595668 deferred mailq: sort initially by arrival time
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-04 17:58:15 +02:00
Stoiko Ivanov
6cde982f6a fix #1976: enable remoteSort for PostfixMailQueue
The mailq results are potentially very large, why a BufferedStore is used.

BufferedStores only support [0] remote filtering (which is already done) and
remote sorting (which this patch enables).

simpleSortMode (getting sortfield and sortdirection as two parameters instead
of an array with multiple objects containing those fields), is enabled to
work with our API.

[0] quite naturally, since you'd need to have the complete result to sort it,
 however only documented in the source code (and not the reference docs)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-06-04 08:34:55 +02:00
Thomas Lamprecht
156bd3f883 deferred mailq: make column widths responsive
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-21 11:08:48 +01:00
Stoiko Ivanov
84d84db140 use format_size renderer for size in deferred queue listing
The listing of the contents of the deferred queue gets its data via
postqueue (1) json output, which lists the size in bytes.
Change the column renderer to use the Proxmox.Utils.format_size
renderer, which computes a sane human readable unit.

Tested by sending a mail, which gets deferred and comparing the
output with the size of the file on disk in
'/var/spool/postfix/deferred'

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-21 11:06:43 +01:00
Dominik Csapak
c17f9fe4d0 jslint: if needs a block
single statements after if can be confusing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:30:58 +02:00
Dominik Csapak
771bd0b94b jslint: remove trailing commas
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:29:17 +02:00
Dominik Csapak
ff735274ca jslint: add Proxmox global to files
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:28:56 +02:00
Dietmar Maurer
59542a9f78 PostfixMailQueue.js: deselect record on removal
So that buttons gets correctly disabled
2017-04-03 12:31:37 +02:00
Dietmar Maurer
cd3d421320 ViewMailHeaders.js: implement simple mail preview (headers only) 2017-04-03 10:27:52 +02:00
Dietmar Maurer
b8b05af7a0 PostfixMailQueue.js: implement remove for single queue entry 2017-04-03 08:10:01 +02:00
Dietmar Maurer
53f18f14ea PostfixMailQueue.js: implement single mail flush 2017-04-03 07:56:36 +02:00
Dietmar Maurer
10f771b57f PostfixMailQueue.js: use new api entry point, allow to set queue name 2017-04-03 07:42:01 +02:00
Dietmar Maurer
55589b49b1 PostfixMailQueue.js: reload on activate 2017-04-02 18:41:25 +02:00
Dietmar Maurer
70b0bec4de QueueAdministration.js: view mail queue on double click 2017-04-02 12:33:51 +02:00
Dietmar Maurer
34d0b6ccfe js/PostfixMailQueue.js: use buffered store with large page size 2017-04-02 12:01:49 +02:00
Dietmar Maurer
df71aecf06 PostfixMailQueue.js: implement filter 2017-04-02 10:50:35 +02:00
Dietmar Maurer
ccf06524eb PostfixMailQueue.js: add widget to display mail queue 2017-04-02 09:11:14 +02:00