procmail
[Top] [All Lists]

Re: Playing a .wav sound

2009-02-10 18:21:47
On 2009.02.10 15:55:43 +0000, LuKreme wrote:
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)

OK...I'll try and play with that.  The reason that I suggested the pipe 
is because I remember seeing that solution mentioned once, but I can't 
remember the details.

--Rem
____________________________________________________________
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>