[Hoary] Evolution Mail Notification
nocturn
ulist at gs1.ubuntuforums.org
Thu May 12 12:51:43 UTC 2005
David M. Carney Wrote:
>
> I would definately be interested in your script. Would you please send
> it to me?
>
> David
>
Sure, this is it:
-- START SCRIPT --
if [ ! -e $HOME/tmp/.newmail ]; then
touch $HOME/tmp/.newmail
zenity --notification
--window-icon=/usr/share/icons/hicolor/16x16/stock/net/stock_mail.png
--text="You have new mail"
rm $HOME/tmp/.newmail
fi
-- END SCRIPT --
I have it as ~/bin/newmail.sh, the Evo filter points at this.
Make sure the zenity, --window icon and --text are on one line (mailers
tend to wrap it).
A word of explanation.
Touching ~/tmp/.newmail is done to avoid multiple icons when more then
one new mail comes in. When you click the icon, .newmail gets removed,
so a new icon can appear.
You can use any icon, just replace the stock_mail.png file.
Enjoy.
--
nocturn
More information about the ubuntu-users
mailing list