I just check the size of the mail file to see if it is non-zero. And then I print an 'M' to my status bar like this:
mail_file=/var/mail/tola if [ -s $mail_file ] then mail=M else mail='' fi Martin Sander <[EMAIL PROTECTED]> writes: > On Mon, Dec 10, 2007 at 03:32:14PM -0500, Jeremy O'Brien wrote: >> Is there a way to get new mail notifications from IMAP that would be >> suitable for the bar? Thank you! > > I don't know what you are thinking of exactly, but I used to use > > fetchmail -c | sed -e 's/[^0-9 (]//g' -e 's/(/-/'|bc` > ~/.mailcheck > > in a cronjob (shows the number of new messages). Then I switched to > offlineimap to sync the mail to my computer, you can then count the new > messages in your Maildir or "sed" the output of offlineimap. > > Greets > > Martin > -- engin tola - http://cvlab.epfl.ch/~tola emacs - http://www.gnu.org/software/emacs/tour