I use alpine as my primary mail reader. While I spend most of my day in the terminal or emacs, it would still be nice to get pretty notification of new mail using notify-bin. Is there any way I can configure alpine to run a custom command when new mail is recieved?
|
There is "NewMail FIFO Path" configuration option in alpine. Quoting the help:
So, I set the option to '/tmp/alpine.fifo', and wrote simple utility to read messages from the FIFO and invoke 'notify-send':
Save it to alpine-notifier.c, and compile with 'gcc alpine-notifier.c -o alpine-notifier' command. Start 'alpine-notifier' after alpine is started. Enjoy pop-up notifications. |
|||||||||
|
|
Can't you use a specialized mail-notification tool like Gnubiff, mail-notification or kbiff? |
|||
|
|
|
It is not possible to customize the "new mail notification" of alpine. There is no such option mentioned in the configuration documentation. Also here is a quote from the mailinglist from Eduardo Chappa:
Your options are now:
And to quote the developer of my favorit mail client:
:-) |
|||
|
|
|
Update: Now you don't have to start the script after starting alpine, the script will take care of everything for you. The core of the script is mostly the same (I only improved parsing a little):
The rest of it is a little large to post here, so anyone who's interested can just get it at the repo. |
|||||
|