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>
in the gui, we always expect an end and starttime, the only case
where we do not get this is when the fields are invalid, so bail out
in that case instead of searching
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Mostly taken from a bigger patch of Dominik, for now lets just show
the count (release is near) and add some padding
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
those stores all have 'autoStart' set, which loads the store anyway
as soon as possible. this seems to fix some store load issues
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This patch adds 3 new configuration settings to the MailProxy Options Tab, for
comfortably enabling greylisting for IPv6 addresses, and configuring the
netmask used for greylist matching
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This reverts commit a89fcfd62b.
Since the pmg-log-tracker is now able to parse logs with before queue
we can add the checkbox for enabling it again.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
with logout as only option.
This makes the header style again consistent between
pmg quarantine/pmg admin/pve
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
e.g. when the user changes the email while having a mail selected,
it gets unselected (albeit briefly) and update will be called
with 'undefined'
this throws an error, so prevent this by always supplying an object
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this moves the the login name to a button/menu like we have for pve
and adds a 'language' option there
this is useful for uses which explicitely login via ticket, which makes
it hard to change the language otherwise
(they'd have to logout, change the language, go to their mail client
and click again the link for the quarantine; also most users do not know
that they *can* change the language when they are logged out)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
by not saving the position across time or email changes, since that
makes no real sense. (The user cannot really know what will be selected,
in contrast to when the mails will be deleted etc.)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
using an explicit load on time change and queryMode 'local', we can
enable typeAhead (and related settings) to let the user type in an email
which will be autocompleted by the loaded list.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
We did already hide it when toggling raw/html, but when choosing raw
and changing the mail, it was again set to visible.
This patch fixes that by always taking 'me.raw' into account.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
As the <b> tag in combination with extjs resulted in a "font-weight:
bolder" setting which was not rendered correctly in Firefox.
Use our own css class to set font-weight to bold.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
to provide users with a comfortable way of changing between incremental
and complete signature download in case one of the methods has a problem.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
If the quarantine is made available via reverse proxy, it sometimes
is bound to a different port (e.g. on 443 for firewall policy reasons)
The use-case seems common enough to justify exposing the parameter via
GUI.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
Tested-By: Dominik Csapak <d.csapak@proxmox.com>
with the changes for fixing #1948 it is now possible to define tls policies
for destinations (remote domains or next-hop transports) instead of only for
Domains.
This patch reflects this addition by renaming all occurences of Domain with
Destination.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
in order to stay consistent with the change in pmg-api
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
which expects the entry as parameter instead of part of the path
this allows all special characters to be included in the entry
in the url, some characters were problematic (e.g. '/') and not properly
handled by the api in the backend
we use Ext.applyIf (which copies the non-existant entries to params) here
instead of getting the ExtraParams from the proxy and setting '.address'
(that would modify the ExtraParams of the proxy and send unwanted
parameters to subsequent api calls like the list-loading)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
By adding a flex value to the domain list items they become scrollable, should
the grid contain more entries than fit on the screen.
This fixes#2579.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
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>
by making the selector field a ComboBox, users can pick from any existing
selector without changing it, replace it or create a new one.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>