From owner-freebsd-questions@FreeBSD.ORG Thu Jun 1 17:43:34 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2F9B16A727 for ; Thu, 1 Jun 2006 17:43:34 +0000 (UTC) (envelope-from SRS0=JJuRJ8=7U=shell.siscom.net=vogelke@siscom.net) Received: from lamorack.siscom.net (lamorack.siscom.net [209.251.2.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6954743D55 for ; Thu, 1 Jun 2006 17:43:34 +0000 (GMT) (envelope-from SRS0=JJuRJ8=7U=shell.siscom.net=vogelke@siscom.net) Received: from shell.siscom.net ([209.251.2.80]) by lamorack.siscom.net with esmtp (Exim 4.52) id 1FlrCi-0006n7-EH; Thu, 01 Jun 2006 13:43:28 -0400 Received: by shell.siscom.net (Postfix, from userid 2198) id 5747B115529; Thu, 1 Jun 2006 13:43:28 -0400 (EDT) Date: 1 Jun 2006 13:31:50 -0400 Message-ID: <20060601173150.60656.qmail@kev.nowhere.usa> From: "Karl Vogel" To: andrew@scoop.co.nz In-reply-to: <20060601122627.F62075@a2.scoop.co.nz> (message from Andrew McNaughton on Thu, 1 Jun 2006 12:54:24 +1200 (NZST)) Organization: Sumaria Systems Inc. X-Disclaimer: I don't speak for the USAF or Sumaria. X-PGP-ID: 1024/D558F237 1999/04/06 Karl Vogel X-PGP-Fingerprint: 8DF5 1D90 18EC A9EF 9EA6 4611 35F4 BC78 D558 F237 References: <20060531230821.T62075@a2.scoop.co.nz> <20060531082354.5e9fbb90.wmoran@collaborativefusion.com> <20060601122627.F62075@a2.scoop.co.nz> Cc: freebsd-questions@freebsd.org, wmoran@collaborativefusion.com Subject: Re: getting alerts about system upgrades X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 17:43:47 -0000 >> On Thu, 1 Jun 2006 12:54:24 +1200 (NZST), >> Andrew McNaughton said: A> I do that, but my mailbox gets lots of traffic. Sometimes I miss A> something, and as far as I know, there's no system to keep reminding me, A> nor a way to quickly check the current state of play. I have the same problem, so I run the script below hourly from cron to check my mailbox for anything I consider urgent. It won't nag me repeatedly about the same messages, so it's not too intrusive. The file "$HOME/.whitelist-alert" holds patterns (one per line) for messages that should get immediate attention. The patterns are mostly email addresses or words consistently found in subject lines. The "xnote" program is simply a driver for "xalarm", which displays an X-windows popup message. -- Karl Vogel I don't speak for the USAF or my company vogelke at pobox dot com http://www.pobox.com/~vogelke The early bird still has to eat worms. =========================================================================== #!/bin/sh # look for important messages. PATH=/bin:/usr/bin:/usr/local/bin export PATH umask 077 # Any mail? mbox="/var/mail/$USER" if test -s "$mbox" then old="$HOME/.priority" new="$HOME/.priority.n" fgrep -if $HOME/.whitelist-alert $mbox > $new # don't say anything unless we have new priority mail. if test -s "$new" then cmp -s $old $new || xnote "you have high-priority mail" fi mv $new $old fi exit 0