procmail
[Top] [All Lists]

Re: playing specific sound

2002-12-04 11:14:11
Thomas asked,

| how can a play a specifc sound (e.g. *.wav) whenever a specific mailbox is
| filtered, I tried:
|
| :0:
| * ^From:(_dot_)*foo(_at_)bar(_dot_)net
| /home/foo/bar
| |play /home/foo/bar.wav
|
| but this doesn't work as the condition is alredeady complied with the
| filtering.
|
| Any suggestions or hints ?

With this TRAP assignment early in your rcfile,

 TRAP='test -f "$LASTFOLDER.wav" && play "$LASTFOLDER.wav"'

You'll get the sound played for a delivery to /path/to/folder whenever
/path/to/folder.wav exists.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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