From owner-freebsd-questions Tue Feb 3 02:36:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA03383 for questions-outgoing; Tue, 3 Feb 1998 02:36:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gatekeeper.acucobol.ie (gatekeeper.acucobol.ie [194.125.135.194]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA03378 for ; Tue, 3 Feb 1998 02:36:13 -0800 (PST) (envelope-from jmcl@Acucobol.IE) Received: (from daemon@localhost) by gatekeeper.acucobol.ie (8.8.5/8.8.5) id KAA10868; Tue, 3 Feb 1998 10:26:33 GMT Received: from guinness.acucobol.ie(194.125.135.195) by gatekeeper.acucobol.ie via smap (V2.0beta) id xma010861; Tue, 3 Feb 98 10:26:16 GMT Received: from wrassler.acucobol.ie ([194.125.135.233]) by guinness.acucobol.ie (8.8.5/8.8.5) with SMTP id KAA24587; Tue, 3 Feb 1998 10:36:37 GMT Message-Id: <199802031036.KAA24587@guinness.acucobol.ie> Comments: Authenticated sender is From: "John McLaughlin" Organization: Acucobol Ireland Ltd To: Sue Blake Date: Tue, 3 Feb 1998 10:36:01 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: they have mail Reply-to: jmcl@Acucobol.IE CC: questions@FreeBSD.ORG In-reply-to: <19980203122046.54922@welearn.com.au> References: <19980203085841.36073@welearn.com.au>; from Sue Blake on Tue, Feb 03, 1998 at 08:58:42AM +1100 X-mailer: Pegasus Mail for Win32 (v2.52) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" On 3 Feb 98 at 12:20, Sue Blake wrote: > On Tue, Feb 03, 1998 at 08:58:42AM +1100, Sue Blake wrote: > > I want to be notified (preferably by email) when mail arrives for a couple > > of users on my system. This will be a rare event which needs a reasonably > > quick response. > > > > I do not want to receive a copy of their mail, just know about it so I can > > advise them. > > Thanks to all those who offered suggestions. They all made sense, and > they all nearly worked. The most spectacular attempt so far > (user:user,"|/path/scriptname" in /etc/aliases) resulted in errors of > such magnitude (trying to forward to user called "|/path/scriptname") > that root was sent a copy of the whole disaster... and root mail gets > forwarded to me anyway so it was a kind of success :-) > > Well I'd better study up on this forward and script business some more, > then maybe I'll see a way to delete the private message body before it > gets sent to me. You can probably do all this using procmail. `formail' (which is part of the procmail package) will pull out arbitrary bits of header, which sounds like it's more or less what you want. Alternatively if you want more detail, you can set a pipe which will feed the header and/or the body of a message into a script, which you can then mung and forward to yourself. John ----------------------------------------------------- John McLaughlin | Acucobol Ireland Ltd IS Manager, Europe | Burlington House e-Mail: jmcl@acucobol.ie | Waterloo Lane WWW: http://www.acucobol.com| Dublin4, Ireland | Ph: +353 1 6676166 | Fax: +353 1 6676130 -----------------------------------------------------