require ["fileinto"];
# rule:[Spam]
if anyof (header :contains "X-Spam-Flag" "YES", header :contains "X-Spam" "yes")
{
	fileinto "spam";
	stop;
}