[SOLVED] Mail object test button not working

hata_ph

Well-Known Member
Nov 13, 2019
866
200
48
45
Just notice test button no longer working on mail filter object. It is just me?

1605160813235.png

Code:
root@pmg:~# pmgversion -v
proxmox-mailgateway: 6.2-2 (API: 6.2-6/3e362107, running kernel: 5.4.65-1-pve)
pmg-api: 6.2-6
pmg-gui: 2.2-3
pve-kernel-5.4: 6.2-7
pve-kernel-helper: 6.2-7
pve-kernel-5.3: 6.1-6
pve-kernel-5.0: 6.0-11
pve-kernel-5.4.65-1-pve: 5.4.65-1
pve-kernel-5.4.60-1-pve: 5.4.60-2
pve-kernel-5.4.44-2-pve: 5.4.44-2
pve-kernel-5.4.44-1-pve: 5.4.44-1
pve-kernel-5.4.41-1-pve: 5.4.41-1
pve-kernel-5.4.30-1-pve: 5.4.30-1
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.3.18-1-pve: 5.3.18-1
pve-kernel-5.3.13-2-pve: 5.3.13-2
pve-kernel-5.3.13-1-pve: 5.3.13-1
pve-kernel-5.3.10-1-pve: 5.3.10-1
pve-kernel-5.0.21-5-pve: 5.0.21-10
pve-kernel-5.0.21-1-pve: 5.0.21-1
clamav-daemon: 0.102.4+dfsg-0+deb10u1
libarchive-perl: 3.3.3-1
libjs-extjs: 6.0.1-10
libjs-framework7: 4.4.7-1
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.2-4
libpve-http-server-perl: 3.0-6
libxdgmime-perl: 0.01-5
lvm2: 2.03.02-3
pmg-docs: 6.2-2
pmg-log-tracker: 2.1.7-1
postgresql-11: 11.9-0+deb10u1
proxmox-mini-journalreader: 1.1-1
proxmox-spamassassin: 3.4.4-2
proxmox-widget-toolkit: 2.3-10
pve-firmware: 3.1-3
pve-xtermjs: 4.3.0-1
zfsutils-linux: 0.8.4-pve2
 
  • Like
Reactions: Stoiko Ivanov
This regex looks odd/wrong:
Code:
(^|^[^:]+...
this matches: the beginning of the string (^) or (|) the beginning of the string and anything that is not a : (^[^:])
also regexes in PMG are anchored (they are prefixed with '^' and suffixed with '$') implicitly

try using simpler regexes - that helps in understanding them

regarding your issue - what happens after you click on the test button?!

I hope this helps!
 
Sorry for the confusing. What I mean is all what/who object test button is not working.
 
What I mean is all what/who object test button is not working.
What happens when you click it? (sorry that I did not phrase that more clearly)

does it work if you open it in a completely new browser?
anything in the logs?
 
No pop up messages when I click the Test button to test the string.

I have try using firefox and edge, both the same.
I have look at syslog or messages do not see anything related. Maybe you can tell me which log that I should look at.
 
check the developer tools of the browser (firefox/chrome have quite decent ones - no experience with edge) - does anything interesting show up in the console or in the network recorder?
 
hmm - managed to reproduce it - will send a patch - Thanks for reporting!
 
  • Like
Reactions: hata_ph