]> git.proxmox.com Git - pmg-api.git/commit
add SACustom Package and API Calls for custom SpamAssassin scores
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 14 Nov 2019 11:18:53 +0000 (12:18 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 15 Nov 2019 08:46:53 +0000 (09:46 +0100)
commit9aeedf1b399ccb558546047533235a93eedbec99
tree0e115692700fb6ca74807db2e866bc2218597cde
parent5314a3a978a1548b6524b02c384d8dcd329d0312
add SACustom Package and API Calls for custom SpamAssassin scores

this uses our INotify interface to parse and write a custom sa config
in /etc/mail/spamassassin/pmg-scores.cf with a shadow file in
/var/cache/pmg-scores.cf (to track the diff)

add also api calls to create a new/delete/edit/revert/apply those custom
rules

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/Makefile
src/PMG/API2/Config.pm
src/PMG/API2/SACustom.pm [new file with mode: 0644]
src/PMG/SACustom.pm [new file with mode: 0644]