require ["fileinto"]; # rule:[Nyhedsbreve] if exists "List-Id" { fileinto "Nyhedsbreve"; stop; } # rule:[Fakturaer] if header :contains "subject" "faktura" { fileinto "Fakturaer"; stop; } # rule:[Kunde Ali] if header :contains "from" "ali@example.net" { fileinto "Kunder.Ali"; stop; } # rule:[Team] if false # header :contains "from" "mads@example.com" { fileinto "INBOX.Team"; }