Re: Playing a sound

Alan Clifford <[email protected]>
Newsgroups gmane.mail.procmail
Organization http://rp.clifford.org.uk/potpourri/
Message-ID <[email protected]>
Danny wrote (at 21:27 (+0200) on Tuesday, 17th April, 2012):

> Hi guys,
>
> Is it possible to play a soundfile when procmail encounters mail from a certain
> e-mail address?
>
> Thank You
>
> Danny


I remember trying this and I still have the recipe commented out in my 
procmail files:

FROMHEADER=`formail -c -rtz -x To:`
# play sound
# DUMMY=`test -f "${PMDIR}/mailsounds/${FROMHEADER}.wav" \
# && play "${PMDIR}/mailsounds/${FROMHEADER}.wav" > /dev/null &`


I had a directory with sounds:

alan@malander:~$ ls ~/.procmail/mailsounds/
alanclifford\@gmail.com.wav  test2\@clifford.ac.wav  test\@clifford.ac.wav


I don't sit at that computer any more since I got a laptop.


Alan

(  Please address personal email to alan+1@ as email to lists@
    is only read from my subscribed lists. )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.