require ["fileinto"]; # rule:[Novice] if exists "List-Id" { fileinto "Novice"; stop; } # rule:[Računi] if header :contains "subject" "račun" { fileinto "Računi"; stop; } # rule:[Stranka Aleš] if header :contains "from" "ales@example.net" { fileinto "Stranke.Aleš"; stop; } # rule:[Ekipa] if false # header :contains "from" "luka@example.com" { fileinto "INBOX.Ekipa"; }