dawinic dawinic at
Fri Jul 21 17:23:54 UTC 2006

Kanwar Ranbir Sandhu <m3freak <at>> writes:

> On Thu, 2006-20-07 at 17:28 -0400, James Pifer wrote:
> > > Evolution has that feature. Under Edit-> preferences -> Mail Preferences
> > > -> General. You can choose no notification or various forms of
> > > notification. Not an icon though.
> > 
> > Do these options work for you? I've tried quite a few times, but I have
> > never seen them work. 
> They don't.  Not sure what the problem is, but having a built-in
> notification feature would be nice.  All of these external apps are a
> pain in the ass.
> Come to think of it...Evolution is becoming a pain in the ass.
> Regards,
> Ranbir


I, instead, add a 'pipe-to-program' filter for mails that are deemed important
to me, with either one of these two as the program description:

notify-send --type=Information --urgency=low --expire-time=4000 "New Ham" 
    "`grep -m 1 ^From: | sed -e 's/\([\"\<\>]\)//g'`" 


notify-panel "New Ham `grep -m 1 ^From: | sed -e 's/\([\"\<\>]\)//g'`"

The notify-send 'program' is simply a one-liner script:

# notify-panel:
# call zenity to add a notification icon up on the panel 
# for each new piece of ham
# (launches as a background process, and returns immediately)

zenity --notification \
--window-icon=/usr/share/icons/gnome/24x24/stock/net/stock_mail-accounts.png \
--text "$1" &

More information about the users mailing list