require ["fileinto"]; # rule:[Newsletters] if exists "List-Id" { fileinto "Newsletters"; stop; } # rule:[Invoices] if header :contains "subject" "invoice" { fileinto "Invoices"; stop; } # rule:[Customer Ahmed] if header :contains "from" "ahmed@example.net" { fileinto "Customers.Ahmed"; stop; } # rule:[Team] if false # header :contains "from" "tom@example.com" { fileinto "INBOX.Team"; }