Yes, you can set custom filters for incoming emails. For example:
You can set rules if an email
is From… or
has Subject… or
is addressed To… or
has specific Reply address… or
has something in Body… or
has any specific Header… or
has any specific Recipient… or
has Not Been Previously Delivered… or
Is an Error Message… or
and even more…
Then perform some specific action, for example:
Discard Message… or
Redirect to Email… or
Fail With Message… or
Deliver to Folder… or
Pipe to a Program
and even more