Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Feb 1998 10:36:01 +0000
From:      "John McLaughlin" <jmcl@Acucobol.IE>
To:        Sue Blake <sue@welearn.com.au>
Cc:        questions@FreeBSD.ORG
Subject:   Re: they have mail
Message-ID:  <199802031036.KAA24587@guinness.acucobol.ie>
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 %2B1100

next in thread | previous in thread | raw e-mail | index | archive | help
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 
-----------------------------------------------------
                               



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802031036.KAA24587>