procmail
[Top] [All Lists]

Re: Playing a .wav sound

2009-02-10 17:55:56
On 10-Feb-2009, at 15:01, Rem P Roberti wrote:
My understanding is that I can get procmail to play a sound when
specific mail arrives by placing piped condition in the recipe,
something like this:

        |mplayer ~/Audio/notify.wav

Well, I would not think that a pipe was the way to go

:0
* some conditions
* go here
{ PLAY=`mplayer /path/to/audio/file.wav` }

might work.

(this assumes, of course, that procmail, and your mail, is on the same machine you are on and not on a server)

--
"I used to hate the sun, because it'd shone on everything I'd done.
        Made me feel that all that I had done was overfill the ashtray
        of my life."

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>