I am thinking about calling a function only when an email received into an account (not for all account). I will setup a rule to process all emails to an account and call a function (user defined) to remove the attached. Is that doable?