Commit Graph

79 Commits

Author SHA1 Message Date
Markus Frank
4b4f0125ed add realms panel to user management
Make the realm configuration available in PMG and disable LDAP/AD
realms for now and use the name oidc instead of openid.

Signed-off-by: Markus Frank <m.frank@proxmox.com>
2025-02-26 20:08:38 +01:00
Stoiko Ivanov
d017b7bb33 fix #2709: rules: match-field: add top-level-only checkbox
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2025-02-21 18:23:08 +01:00
Stoiko Ivanov
f4b2213ed0 rules/content-typefilter: add checkbox for file content only matching
Tested-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2025-02-21 18:23:08 +01:00
Stoiko Ivanov
918bfd5b94 rules/object: remove icon from remove button
the icons were introduced to the listing, and it seems their rendering
when removing was not noticed - w/o this the message is e.g.:
"Are you sure you want to remove entry
'<span class="fa-fw fa fa-file-image-o'"></span> Content Type Filter:
..."

Fixes: ea4f2a7 ("add icons to the object types")

Tested-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2025-02-21 18:23:08 +01:00
Stoiko Ivanov
f9d006adc2 utils: fix typo in default notification body
reported in our community forum:
https://forum.proxmox.com/threads/.153492/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2024-08-29 14:14:54 +02:00
Maximiliano Sandoval
443e7de1f4 utils: anchor regex expression
Without anchoring this would match for example `a@b/c`.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
2024-02-27 10:21:38 +01:00
Dominik Csapak
a64bf633bd disclaimer edit: add 'add-separator' checkbox
for controlling if the separator should be included or not, default is
on (backend default).

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ TL: explicitly submit unchecked value ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-02-22 16:58:44 +01:00
Dominik Csapak
99593c8571 disclaimer edit: add position comobobox
to enable setting the disclaimer position

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2024-02-22 16:34:37 +01:00
Stoiko Ivanov
845efd4177 utils: add custom validator for pmg-email-address
matching the pattern in the backend (allowing most characters inside
of e-mail addresses.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-11-25 15:26:38 +01:00
Thomas Lamprecht
cd15075876 quarantine: subject/sender: refactor/code-style-fix render functions
extends on the improvements from the previous commit, reduces code
lines while (hopefully, as slightly subjective) not reducing
readability

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-10-22 16:12:25 +02:00
Stoiko Ivanov
ab606ffb7f fix #4137: display receiver in attachment/virus quarantine
the attachment and virus quarantines contain all quarantined mail for
all recipients - so we should display which mail is being
delivered/deleted - mostly if a mail is sent to multiple addresses
served by the same PMG.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2022-10-21 09:28:21 +02:00
Thomas Lamprecht
deba42e70d object editors: rework so that default label width fits everywhere
mostly by s/Regular Expression/Regex/ and transforming some
checkboxes' fieldLabel into boxLabels

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-05-14 17:58:06 +02:00
Thomas Lamprecht
a4c22f9dd3 utils: code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-02-17 09:35:46 +01:00
Dominik Csapak
7058cddb63 fix #3565: fix typo in gettext
s/orignal/original/

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-08-09 17:36:12 +02:00
Thomas Lamprecht
44362902f3 utils: align notification toast to bottom-right again
The default changed sometimes between ExtJS 6.0.1, which used 'br',
and ExtJS 7.0, which has 't' (top) as new default.

So set it explicitly to the previous used one, less intrusive and was
intended to be there.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-07-21 12:10:47 +02:00
Thomas Lamprecht
3168b7f780 spam quarantine: batch actions into 2500-sized chunks
With ~20 bytes per message-id and separator we get over the current
HTTP post size limit of 64 KiB with ~ 3200 messages.

As 2500 is a relatively nice number for humans to deal with rather go
for that one, that leaves also some room for potential longer IDs in
the future.

Send the batches of async in pairs, as with that the pmgproxy can
still cope well and is not overloaded.

Mask the whole list panel with a 'Processing...' loading-mask during
sending of requests affecting multiple messages, so that the user
gets some instant visible feedback that something is actually
happening (the api calls may return only after a few seconds).

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-23 12:26:03 +01:00
Thomas Lamprecht
139d9b7a5b utils: add onlineHelpTool
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-18 10:40:50 +01:00
Dominik Csapak
0db5cdb140 Utils: add product specific task descriptions
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-10-30 15:00:52 +01:00
Thomas Lamprecht
f057ca9085 drop jslint hints
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 14:08:50 +02:00
Thomas Lamprecht
92b6c1f300 quarantine action: use shadow for toast "window"
better contrast

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 13:15:12 +02:00
Thomas Lamprecht
467eb50baa quarantine: make annoying success prompt a toast
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 12:57:20 +02:00
Thomas Lamprecht
8153da61b4 utils: eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-23 12:09:55 +02:00
Dominik Csapak
74468b03a5 add 'Match Archive Filename' to list of what objects
and add an editor for it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-16 15:02:32 +02:00
Dominik Csapak
b759e68998 ActionList: make labels in editwindow consistent
to make it consistent with the grid in which the actions get shown,
since we have a different column with the name 'description' there
already

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-10-23 16:06:20 +02:00
Dominik Csapak
19b455dd5c add render_filetype
this will be used to show the icon in the attachment list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-By: Stoiko Ivanov <s.ivanov@proxmox.com>
Tested-By: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-10-17 15:25:31 +02:00
Dominik Csapak
572198b7e6 Action remove: add quarantine checkbox
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-By: Stoiko Ivanov <s.ivanov@proxmox.com>
Tested-By: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-10-17 15:25:31 +02:00
Dominik Csapak
3600c3c76a add LDAP+STARTTLS as ldap protocol
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-03-18 06:36:44 +01:00
Dominik Csapak
4eab05c273 make who regex tests anchored
they are in the rule system, so let the users test it correctly

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-02-25 06:15:43 +01:00
Stoiko Ivanov
573a6e8b71 add onlineHelp properties to all edit windows
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2018-10-03 14:32:24 +02:00
Dominik Csapak
74901b37df reword the action success message to not show the id
but the count if we have multiple messages

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-03-29 14:27:43 +02:00
Dietmar Maurer
751d131c4d add new helpdesk role 2018-03-22 11:40:39 +01: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
Dietmar Maurer
aac17b9be4 Revert "doQuarantineAction: pass pmail parameter"
This reverts commit 794e411a4f.

Not required any longer, because the backend now encode all info inside
the id.
2017-12-28 12:47:11 +01:00
Dietmar Maurer
794e411a4f doQuarantineAction: pass pmail parameter 2017-12-28 08:41:59 +01:00
Dominik Csapak
6ad5f9f2c6 replace novnc with xtermjs
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-12-11 14:50:03 +01:00
Dominik Csapak
20d8d03735 jslint: rework icon_status_map to avoid type confusion
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:33:24 +02:00
Dominik Csapak
de0ebd99a1 jslint: type confusion
resolve/mark several type confusions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:30:26 +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
a0a98b8d9d set the from date for QuarantineList from url parameter
when we click a link in a Quarantine report, we want the
'from' date to be the day of that mail, so that we can
select the mail

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:27:53 +02:00
Dominik Csapak
6994550a3f add regex Tester to regular expression editor
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-17 09:12:26 +02:00
Dominik Csapak
628eccdb9a add missing action list editors
and add them in the ActionList to be listed in the drop down

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-17 09:12:12 +02:00
Dominik Csapak
ea4f2a7923 add icons to the object types
and show them in the editwindow, the grid and the add menu

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-13 06:29:24 +02:00
Dominik Csapak
8ddd9c44f5 add virusfilter
we now also disable the edit button if the objectgroup editor has an
'uneditable' flag set, we need this, because the virusfilter has nothing
which we could edit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-13 06:21:55 +02:00
Dominik Csapak
b79fbba8e4 normalize the dashboard graph to per minute
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-12 11:11:15 +02:00
Dietmar Maurer
7818f0a3c0 UserView.js: display role 2017-10-09 09:17:55 +02:00
Dominik Csapak
2fa0b5059a reuse do quarantineAction
and make it possible to show both subscription and action window after
one another

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-06 07:31:22 +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
c4ff49f761 add status icons to utils
used later for the tracking center

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-05 12:56:20 +02:00
Dominik Csapak
cf5268ca8a add doQuarantineAction and sender_renderer
doQuarantineAction executes a quarantine action with a callback

sender_renderer is the renderer for the quarantine list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:44:38 +02:00
Dominik Csapak
2c1d504e90 jslint: globals
adds the global object proxmox to most files

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