diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-11-17 14:47:58 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-11-17 14:47:58 +0100 |
commit | 089f5093010d7002333987c0c545447201a4fa8d (patch) | |
tree | 7eb4eab76366a98faf02742dddf4fdc395ca9d3d /modules/private/mail/sieve_scripts | |
parent | 98f8f4de86129f52b5c983d8f16ee310bd3b5b24 (diff) | |
download | Nix-089f5093010d7002333987c0c545447201a4fa8d.tar.gz Nix-089f5093010d7002333987c0c545447201a4fa8d.tar.zst Nix-089f5093010d7002333987c0c545447201a4fa8d.zip |
Add automatic backup of received e-mails
Diffstat (limited to 'modules/private/mail/sieve_scripts')
-rw-r--r-- | modules/private/mail/sieve_scripts/backup.sieve | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/private/mail/sieve_scripts/backup.sieve b/modules/private/mail/sieve_scripts/backup.sieve new file mode 100644 index 0000000..c922999 --- /dev/null +++ b/modules/private/mail/sieve_scripts/backup.sieve | |||
@@ -0,0 +1,9 @@ | |||
1 | # vim: filetype=sieve | ||
2 | require ["copy","mailbox","fileinto","regex"]; | ||
3 | if not header :regex "subject" "^TestMailImmae ?$" { | ||
4 | if header :is "X-Spam" "Yes" { | ||
5 | fileinto :create :copy "Backup/Spam"; | ||
6 | } else { | ||
7 | fileinto :create :copy "Backup/Ham"; | ||
8 | } | ||
9 | } | ||