It's best to not have Hazel muck with the internal files of other apps, like Mail. I think it might be better to look for a solution on the Mail side of things. Mail does have its own rule system plus there are Mail plugins that may provide that functionality.