You can kinda do that by setting your own filter. However, you could delete good email and on accident, so I wanted to make sure you understand that.
Anyhow, using custom mail filters, you can do all kinds of stuff to your mail. For instance, filter mail that has the
X-Spam: Yes header, and delete it, or put it in a folder for checking, or whatever.