13 lines
285 B
Plaintext
13 lines
285 B
Plaintext
require "fileinto";
|
|
require "mailbox";
|
|
require "variables";
|
|
require "subaddress";
|
|
require "envelope";
|
|
|
|
if header :contains "X-Spam-Flag" "YES" {
|
|
fileinto "Junk";
|
|
}
|
|
if allof (envelope :detail :matches "to" "*", header :contains "X-Moo-Tag" "YES") {
|
|
fileinto :create "INBOX/${1}";
|
|
}
|