Commit Graph

28 Commits

Author SHA1 Message Date
Thomas Lamprecht
9b4247fbf2 quarantine list: factor out restoreSavedSelection
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-01 13:39:36 +02:00
Thomas Lamprecht
0e26e20aa5 code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-01 13:38:49 +02:00
Thomas Lamprecht
0bd9ee2261 fix #3164: allow one to display all quarantined spam mails
If the API call returned more than one pmail entry, inject an "all"
entry which, if selected, drops the user parameter and loads the
quarantine mails of all users from the backend.

The webinterface has only some issues regarding deselection (all in
the grid header or if we need to deselect due to the search filtering
out some elements) - for that the underlying issue was found and a
widget toolkit patch was provided.

The rest seems now pretty performant, albeit more than a few 100k
mails may become a problem here. But, in such big setups the mail
admin won't tinker to much whith the users mail anyway, if they are
even alowed to do so depending on their jurisdictions privacy laws
and companies privacy policy.

So, basically this is more for evaluation or for smaller setups but
got quite often requested, and as there's not more data
exposed/returned then already available I see no real argument
against it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-22 09:50:24 +01:00
Thomas Lamprecht
42de6d4631 quarantine list: factor out actual filtering in separate function
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-22 09:48:21 +01:00
Thomas Lamprecht
d19c27947f qlist: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-21 18:02:07 +01:00
Thomas Lamprecht
d3e6c6a1f2 quarantine list: allow one to filter by subject or from sender
Deselect those entries which got filtered out, to avoid doing
some action (delete, deliver) on hidden records.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-19 19:27:09 +01:00
Thomas Lamprecht
83a42bac45 quarantine list: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-19 19:24:51 +01:00
Thomas Lamprecht
28eb60c0bd eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-30 14:08:16 +01:00
Thomas Lamprecht
a36756b058 drop jslint hint for Proxmox global
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 14:03:17 +02:00
Thomas Lamprecht
c87d46fbe8 tree wide: eslint --fix
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 13:17:15 +02:00
Dominik Csapak
76d5a73865 QuarantineList: rename from/to to since/until
To not confuse 'from' with the 'email from'
partly fixes #2678

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-15 14:07:46 +02:00
Dominik Csapak
9133f72f56 QuarantineList: improve savedPosition behaviour
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>
2020-04-15 14:07:46 +02:00
Dominik Csapak
61a8a658d2 fix #2680: make Quarantine E-Mail list searchable
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>
2020-04-15 14:07:46 +02:00
Dietmar Maurer
6265117277 cleanup: set selModel only where we need it 2018-03-29 14:40:32 +02:00
Dominik Csapak
5fb0f71ea0 quarantine: do not deselect when list changes
when an e-mail is selected and an action goes through,
select the e-mail on the position the old one was,
this way, one does not have to reselect an e-mail after
an action is done

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-29 14:31:00 +02:00
Dominik Csapak
e6eb9495fa set the default quarantine timespan to a week
instead of only the current day

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-29 14:30:07 +02:00
Dominik Csapak
d42f85b806 implement multiselection of spamquarantine mails
and allow the actions to be sent for all simultaniously

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-29 14:22:42 +02:00
Dominik Csapak
64fb657f83 improve gettext usage
optimized a few string
EMail/Email/E-mail -> E-Mail
No Data in Database/No data in database. -> No data in database
etc.

removed 'Outlook 2007' from gettext
added some strings to gettext where they were missing
(e.g. Active, etc.)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-24 06:26:26 +01: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
Dominik Csapak
c70a57fbd3 QuarantineList.js: save from and to date as statics in class
so that when we have the same timespan when we change the quarantine,
as long as we do not reload the browser window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:27:11 +02:00
Dominik Csapak
94153e9a9e add emptytext to email selector in quarantine
so that when there is no email in the quarantine for the selected
timeframe, we now get the feedback that there is no data

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:40:38 +02:00
Dominik Csapak
ff0ee46d29 setEmptyText when when loading the store with an email selected
so that we get 'no data' instead of 'no email selected'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:40:15 +02:00
Dominik Csapak
96fba078bf add missing htmlEncode
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:39:40 +02:00
Dominik Csapak
2f8fe1a335 add missing clearbeforeload arguments for monStoreErrors
otherwise we gat double loading masks

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:37:16 +02:00
Dominik Csapak
207471c040 select mail when coming from link in SpamQuarantine mail
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-06 07:29:58 +02:00
Dominik Csapak
99bba12c7f improve login/logout/cookie behaviour
this changes the login/logout/cookie behaviour

if you go to /quarantine
    you get to the loginview
    except you have a valid cookie
    or you have a ticket via url (this takes precedence)

    when you have a valid login
	you go to the quarantineview
else if you have not a quarantine ticket
    you get to the mainview
else
    you get to the loginview

also adds a logout button to the quarantineview
and moves the viewchange/logout logic to the Application.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-05 12:51:38 +02:00
Dominik Csapak
75fcb6fdde add QuarantineList component
this component is a refactored version of the PMG.SpamList
component, but it incorporates the logic and layout for
changing dates/emails from the PMG.SpamQuarantine component

additionally, it has some logic to show/hide the email selection box
via a config property ('emailSelection')

this will be used for the SpamQuarantine in admin/user view and
for the virus quarantine

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:43:33 +02:00