Trying advanced sieve thingies

This commit is contained in:
Julien Malka 2023-01-26 18:48:35 +01:00
parent 9f74ffc262
commit b9209a815c
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -23,6 +23,15 @@ with lib;
"julien@malka.sh" = {
hashedPasswordFile = "/run/secrets/malkash-pw";
catchAll = [ "malka.sh" ];
sieveScript = ''
require ["variables", "fileinto", "envelope", "subaddress", "mailbox"];
if envelope :matches :user "to" "*" {
# you can prefix with INBOX/ or INBOX. if necessary
# remove :create if you want to permit only existing mailboxes
fileinto :create "''${1}";
}
'';
};
"julien.malka@ens.school" = {
hashedPasswordFile = "/run/secrets/ensmailmalka-pw";