Ang,
When I suggested that your mail tool is best, I was talking about deleting mail that is already in your mailbox. Use the sort capabilities to select unwanted mail - perhaps moving suspect mail to a new folder and using a different sort criteria to narrow the selection - then delete it. This would be a manual process.
For mail that is coming in, the mail tool filters might be what you want. A filter script would also work. Which choice is best depends on the complexity of your deletion criteria and how much you want to/can put into it. Either way, this would be an automated process (once you set up your filters).
Mike's second question (at what stage do you want to process mail) is quite pertinent.
Perhaps more detail on what you are trying to accomplish is in order. Unless you plan on processing several mail boxes, I don't see much way of automating the process. Well, maybe I do… if you don't use the automated filter to process incoming mail, you could automate the process of cleaning up afterward. The best solution here would be to set up a filter on the incoming mail, however, and not play with the mailbox. (I'm assuming that once you clean up your mailbox, you will use filters to keep it clean.)
To offer much more, I need a better idea of what you are really trying to accomplish.
- Steve StevieW85@go.com