require ["fileinto", "regex", "date", "relational", "vacation"]; # Move spam to spam folder if header :contains "X-Spam-Flag" "YES" { fileinto "Junk"; # Stop here so that we do not reply on spams stop; } # Send a copy of email to redirect ""; keep; ################################################################# # Autoreply ################################################################# # Move spam to spam folder if header :contains "X-Spam-Flag" "YES" { # Stop here so that we do not reply on spams stop; } if allof(currentdate :value "ge" "iso8601" "", currentdate :value "le" "iso8601" "") { vacation :days 1 :subject "" ""; }