Am 08.05.20 um 12:00 schrieb David Faller ([email protected]):
Dear all,I have a little question, cyrus-imapd global sieve script support is limited, and SOGo users can also set sieve scripts easy, I’d like to setup a global filter on sogo.conf:SOGoSieveFilters = { [{"actions": [{"argument": "Junk", "method": "fileinto"}], "name": "Spam2Junk", "rules": [{"field": "header", "operator": "contains", "custom_header": "X-Spam-Flag", "value": "YES"}], "match": "all", "active": 1}] };But with this setting sogo can’t start up. It’s good to know that I can adjust each user setting over the sogo-tool but there’s no option to set defaults to all users at one time. I know the setting in sogo.conf will only work for new users, but I think my formation here is wrong, could someone help? Best Regards, David Faller
In sogo.conf you can not use json.
I would also stop processing SIEVE when encountering a Spam ;-)
See second action.
Your example corrected and enhanced:
SOGoSieveFilters = (
{
actions = (
{
argument = "Junk";
method = fileinto;
},
{
argument = "<null>";
method = stop;
}
);
name = "Spam2Junk";
rules = (
{
field = "header";
operator = "contains";
"custom_header" = "X-Spam-Flag";
value = "YES";
}
);
match = "all";
active = 1;
}
);
Kind regards,
Christian Mack
--
Christian Mack
Universität Konstanz
Kommunikations-, Informations-, Medienzentrum (KIM)
Abteilung IT-Dienste Forschung und Lehre
78457 Konstanz
+49 7531 88-4416
smime.p7s
Description: S/MIME Cryptographic Signature
