require ["fileinto","mailbox"];
# Handle rspamd output
if header :contains "X-Spam-Status" "Yes"
{
fileinto :create "Spam";
stop;
}
if exists ["X-Spam-Bar"]
fileinto :create "Spam.ToClassify";