Date: Tue, 14 Dec 93 14:50:51 -0500
From: Glenn Brown <nobugs!ctr.columbia.edu!gbrown>
To: next-icon@gun.com
Subject: improved next-icon sound filter
Reply-To: nobugs!ctr.columbia.edu!gbrown

Recently, I posted some handy scripts that play sounds if mail from any source other than the next-icon list is received.  I'd been using those scripts for months, but posting them made me realize that they could be better, so here's an updated version of

 /usr/home/gbrown/.notify.glenn->¬ This version can easily modified using Edit to filter out other mail sources as well.  It includes comments.  It fixes a (harmless) bug that plays sounds if next-icon mail was sent to the mailing list using the 'CC:' line.
 
The scripts require simple modifications to work for you.  Basically, you have to put .forward and .notify.glenn in your home directory and put ifonconsole in /usr/local/bin. Also, you must change my pathname and username in .forward and .notify.glenn to your pathname and username.

The ifonconsole script has the following syntax:
	ifonconsole username oncommand notoncommand	
oncommand is executed if username is logged into the console.  Otherwise, notoncommand is run.  Put single quotes around the oncommand if the oncommand has spaces in it.

The scripts have the added advantage that they work independently of Mail.app, so the sounds play even if Mail is not running.  Also, they consequently get around the bug in Mail.app that sometimes prevents sounds from being played.

--Glenn