Rename sieve option
The option `services.dovecot2.sieveScripts` has been renamed to `services.dovecot2.sieve.scripts`
This commit is contained in:
parent
3dadeab68d
commit
6dd2f190aa
1 changed files with 9 additions and 7 deletions
|
|
@ -33,14 +33,16 @@ lib.mkIf cfg.enable {
|
|||
Spam = { specialUse = "Junk"; auto = "subscribe"; };
|
||||
};
|
||||
|
||||
sieveScripts = {
|
||||
before = pkgs.writeText "spam.sieve" ''
|
||||
require "fileinto";
|
||||
sieve = {
|
||||
scripts = {
|
||||
before = pkgs.writeText "spam.sieve" ''
|
||||
require "fileinto";
|
||||
|
||||
if header :is "X-Spam" "Yes" {
|
||||
fileinto "Spam";
|
||||
}
|
||||
'';
|
||||
if header :is "X-Spam" "Yes" {
|
||||
fileinto "Spam";
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue