Mailbox listeners allow extending the behaviour of mail delivery agents.
Read this page on the website to see how to run this example.