I have question:

Question.1: is it need "set/make folder" that folder "foldername" before autorun that email_rule_code?

Question.2, set that email rule. is it possible write some code to doing that:

select email
if email domain abc-com = \folder\abc

if peter-yahoo-com = \folder\yahoo_peter) or mary-yahoo-com = \folder\yahoo_mary else \folder\yahoo_generalall

if email mailer-daemon-(alldomainname) = \folder\mailer-daemon



where to begin or some example?