Hello If you set "active" to 0 (zero), this filter rule will be visible for users, but not be active. Therefore every user can activate this rule himself.
Kind regards, Christian Mack Am 09.05.20 um 06:22 schrieb David Faller ([email protected]): > At least a little question also here, for new users the configurated filter > is working fine, but users net to tick to activate the filter on sogo mail > settings. > For existing users there's no way that they can tick this filter to enable it > or? > > Think over sogo-tool this handling will be the same and not enforce this > setting right? > > Best Regards > David Faller > > Am 08.05.20, 15:31 schrieb "Christian Mack > ([email protected])" <[email protected] im Auftrag von > [email protected]>: > > 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
