[pmg-devel] applied: [PATCH pmg-api] utils: ignore leading whitespace in sa description

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Nov 25 10:20:06 CET 2020


On 19.11.20 16:48, Stoiko Ivanov wrote:
> load_sa_descriptions is used to parse the 'describe' lines for SpamAssassin
> rules for the SpamInfo in the quarantine view.
> 
> The regex for parsing is too strict, since config lines can contain
> leading whitespace (e.g. due to indentation in an 'ifplugin' block)
> 
> checked Mail::SpamAssassin::Conf::Parser and they strip leading/trailing
> whitespace as well.
> 
> tested on my local setup with a quarantined mail which hit KAM_DMARC_STATUS.
> 
> Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
> ---
> reported in our community forum:
> https://forum.proxmox.com/threads/consultation-about-the-meaning-of-some-pmg-smtp-filter-intercept-parameters.78962/
> 
>  src/PMG/Utils.pm | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>

applied, thanks!




More information about the pmg-devel mailing list