]> git.proxmox.com Git - pmg-api.git/commit
filter: skip warning about max_filters on low-memory if manually set
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Feb 2024 14:00:05 +0000 (15:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Feb 2024 14:00:08 +0000 (15:00 +0100)
commitf4027a70c8139188234ff08ce1ea4e887ef65bfc
tree9dfef10f70216e86e4eb3f422c42a37d90fa8e91
parentb0f049b6674ea574fc3352859a71c54d40603a50
filter: skip warning about max_filters on low-memory if manually set

The get_max_filters method gets called on module load to fill the
default value used, at that stage we cannot know if the admin set
max_filters manually or not, so the warning might be bogus and thus
annoying.

Move it over to the smtp-filter executable's startup code, as there we
can check the config if it's max_filters is set or not.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/Config.pm
src/bin/pmg-smtp-filter