Re: Playing a sound

Andrew Edelstein <[email protected]>
Newsgroups gmane.mail.procmail
Organization Pure Chaos Hosting
Message-ID <[email protected]>
On 04/17/2012 02:27 PM, Danny wrote:
> Is it possible to play a soundfile when procmail encounters mail from a certain
> e-mail address?
That depends on your operating system, is your mailbox server also your 
workstation, etc.
Generally, assuming your workstation is the same machine where Procmail 
is running, this is fairly trivial. You just need the "action" of your 
procmail recipe to include calling your sound player program, presumably 
telling it what sound file to play. You may have to monkey around with 
user/permissions a bit so that the user that's running the procmail 
script has permission to access your sound device. Presumably if 
procmail is being run as you, and you are logged into X windows, this is 
a non-issue as you will have permission to access the sound device.

-- 
Andrew Edelstein - [email protected]
https://andrew.pure-chaos.com/
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.