Sending a reply email based on a database query

this example takes only the incoming emails containing in the email body “subscription status” using an email filter and replies if the sender is subscribed or not. The subscription status is kept in a database table.