diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-01-17 17:58:08 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-01-17 17:58:08 +0100 |
commit | 5dc338f00bb37519260ffa07f2ccbb80b0abc833 (patch) | |
tree | 90ee16e7165440eb2c7b82074b4ff7718491b9a7 /modules/private/mail/sieve_scripts | |
parent | ef0a9217fba817d7fb71ccd4cca65919dd89ebec (diff) | |
download | Nix-5dc338f00bb37519260ffa07f2ccbb80b0abc833.tar.gz Nix-5dc338f00bb37519260ffa07f2ccbb80b0abc833.tar.zst Nix-5dc338f00bb37519260ffa07f2ccbb80b0abc833.zip |
Fix Backup mailboxes expunging
Diffstat (limited to 'modules/private/mail/sieve_scripts')
-rw-r--r-- | modules/private/mail/sieve_scripts/backup.sieve | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/private/mail/sieve_scripts/backup.sieve b/modules/private/mail/sieve_scripts/backup.sieve index c922999..3014c0a 100644 --- a/modules/private/mail/sieve_scripts/backup.sieve +++ b/modules/private/mail/sieve_scripts/backup.sieve | |||
@@ -1,9 +1,7 @@ | |||
1 | # vim: filetype=sieve | 1 | # vim: filetype=sieve |
2 | require ["copy","mailbox","fileinto","regex"]; | 2 | require ["copy","mailbox","fileinto","regex"]; |
3 | if not header :regex "subject" "^TestMailImmae ?$" { | 3 | if header :is "X-Spam" "Yes" { |
4 | if header :is "X-Spam" "Yes" { | 4 | fileinto :create :copy "Backup/Spam"; |
5 | fileinto :create :copy "Backup/Spam"; | 5 | } else { |
6 | } else { | 6 | fileinto :create :copy "Backup/Ham"; |
7 | fileinto :create :copy "Backup/Ham"; | ||
8 | } | ||
9 | } | 7 | } |