Re: mail-notification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kanwar Ranbir Sandhu <m3freak <at> rogers.com> 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
> 

(agreed.)

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'`" 

or 

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


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

#!/bin/bash
#
# 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" &




-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux