Re: Playing a sound

Robert Bonomi <[email protected]>
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
`
> Date: Tue, 17 Apr 2012 21:27:32 +0200
> From: Danny <[email protected]>
> Subject: Playing a sound
>
> Hi guys,
>
> Is it possible to play a soundfile when procmail encounters mail from a certain
> e-mail address?

Yes, procmail is -capable- of doing it.  To wit;

    :0 c:
    * ^From:.*${ADDRESS}
    | ${PLAYSOUND}

However _system_ restrictions may prohibit it.  e.g. system-enforced access
controls may allow only the user logged in on the 'console' to access the
audio device.

More than two decades ago, in a _production_ business environment, I 
deployed a routine on user workstations that submitted a job to a remote 
mainframe.  when the 'completion status' mail came back one of two sound-
effects would play, depending on whether the job completed sucessfully or
failed.  Picked from the 'standard' samples that came with the O/S release,
they were a 'gong' for a successful run, and a 'toilet flushing' for the
other case.   One day, a new user got the submitted data wrong for something
like 20 consecutive attempts.  When he -finally- got the 'gong', he got a
round of applause from everybody within earshot.  *GRIN*
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.