procmail
[Top] [All Lists]

Re: Playing a sound

2012-04-18 12:25:25
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. )

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