Sieve Filtering: Difference between revisions
Appearance
Content deleted Content added
Restore simple spam folder use |
Handle bad spam |
||
| Line 81: | Line 81: | ||
require ["fileinto","mailbox"]; |
require ["fileinto","mailbox"]; |
||
if exists "X-Spam-Flag" { |
if exists "X-Spam-Flag" { |
||
if header :is "X-Spam-Flag" "YES" { |
|||
if exists "X-Spam-Bar" { |
|||
| ⚫ | |||
# 20 OR MORE + |
|||
| ⚫ | |||
if header :contains "X-Spam-Bar" "++++++++++++++++++++" { |
|||
} |
|||
# Can't reject, not supported |
|||
fileinto :create "bad-spam"; |
|||
stop; |
|||
} |
|||
} |
|||
| ⚫ | |||
| ⚫ | |||
} |
|||
} |
} |
||