procmail
[Top] [All Lists]

Re: Playing a sound

2012-04-17 22:45:58
`
Date: Tue, 17 Apr 2012 21:27:32 +0200
From: Danny <dannydebont(_at_)gmail(_dot_)com>
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*

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