On Fri, Jul 23, 2010 at 12:03:26PM +0800, He Wen wrote: >Hi, Every one! > >I try to use notify-send to send a message to my desktop when a new mail >arrives, but i find notify-send dosen't work with procmail: > >In my procmailrc, I have: > ># notification >:0 ic: >| play /usr/share/sounds/gnome/default/alerts/drip.ogg; notify-send -i >'evolution' "New Mail Arrives" > >Only the sound could be heard, but no notifcation popped out. I can't figure >out >what's wrong with it. Could anyone help me? Thank you ^^
Try substituting a " &" for the ";", or " &&"? ie. | play /usr/share/sounds/gnome/default/alerts/drip.ogg & notify-send -i Also, make sure notify-send is within your $PATH. ie: $ whereis notify-send /usr/local/bin/notify-send $ echo $PATH /bin:/usr/bin: export PATH=$PATH:/usr/local/bin But I'm sure some procmail junky will find you're error better then I!