2016-12-19 15:20:30 +01:00
|
|
|
require "fileinto";
|
|
|
|
require "mailbox";
|
|
|
|
require "variables";
|
|
|
|
require "subaddress";
|
|
|
|
require "envelope";
|
|
|
|
|
|
|
|
if header :contains "X-Spam-Flag" "YES" {
|
|
|
|
fileinto "Junk";
|
|
|
|
}
|
2017-01-09 12:37:39 +01:00
|
|
|
|
|
|
|
if allof (
|
|
|
|
envelope :detail :matches "to" "*",
|
|
|
|
header :contains "X-Moo-Tag" "YES",
|
|
|
|
mailboxexists "INBOX/${s}"
|
|
|
|
) {
|
|
|
|
fileinto "INBOX/${s}";
|
|
|
|
}
|
|
|
|
elsif allof (
|
|
|
|
envelope :detail :matches "to" "*",
|
|
|
|
header :contains "X-Moo-Tag" "YES"
|
|
|
|
) {
|
|
|
|
set :lower "s" "${1}";
|
|
|
|
fileinto :create "INBOX/${s}";
|
2016-12-19 15:20:30 +01:00
|
|
|
}
|