IMAP IDLE mail check with Snarl notification for Perl
A proof of concept script that uses Mail::IMAPClient IDLE support, a Perl socket, and Snarl to display new mail notifications to the user without polling the mail server on a defined interval.
No. This is an example that has a few bugs, but shows what can be done with Mail::IMAPClient IDLE command.
How to work with Mail::IMAPClient IDLE command and Perl socket