Re: [dwm] dwm new message notification

From: Engin Tola <engin.tola_AT_epfl.ch>
Date: Tue, 11 Dec 2007 14:46:17 +0100

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 <forke_AT_uni-bonn.de> 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
Received on Tue Dec 11 2007 - 14:46:18 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:11:17 UTC