require ["fileinto", "reject"];
if size :over 1M
{
reject text:
Please do not send me large attachments.
Put your file on a server and send me the URL.
Thank you.
.... Fred
.
;
stop;
}
if header :is "Sender" "owner-ietf-mta-filters@imc.org"
{
fileinto "filter";
}
elsif address :domain :is ["From", "To"] "example.com"
{
keep;
}
elsif anyof (not address :all :contains
["To", "Cc", "Bcc"] "me@example.com",
header :matches "subject"
["*make*money*fast*", "*university*dipl*mas*"])
{
fileinto "spam";
}
else
{
fileinto "personal";
}