ElDeveloper/mutt — pull request #2 by ElDeveloper (2014-09-11 06:33:23+00:00)
Title: Add new_command setting

new_command will get executed when the current mailbox receives new
mail. Two values are formatted into this string, the first is the number
of new messages and the second the number of unread messages.

If this value is not set, no command is executed.

---------------------

This is how my muttrc file looks:

set new_command="notifier --title 'Mutt' --subtitle 'New Mail' --message '%d new messages, %d unread.'"

You can find notifier [here](https://gist.github.com/ElDeveloper/f7e8b19aff23550af426).

--------------------

See animated gif:

![mutt-demo](https://cloud.githubusercontent.com/assets/375307/4230044/1c4dc3a4-397d-11e4-84ae-b4d1073c8d0c.gif)