From owner-freebsd-questions Tue Dec 18 7:25:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.cz (diana.mobil.cz [195.39.16.12]) by hub.freebsd.org (Postfix) with ESMTP id 2FE8237B405 for ; Tue, 18 Dec 2001 07:25:21 -0800 (PST) Received: from ester.mobil.cz (ester.mobil.cz [194.213.62.23]) by mobil.cz (8.11.6/8.11.0) with ESMTP id fBIFPJP10622 for ; Tue, 18 Dec 2001 16:25:19 +0100 Received: from roman.mobil.cz ([10.2.0.89]) by ester.mobil.cz (Lotus Domino Release 5.0.7) with ESMTP id 2001121816241246:1732 ; Tue, 18 Dec 2001 16:24:12 +0100 Received: (from roman@localhost) by roman.mobil.cz (8.11.6/8.11.6) id fBIFXS414447 for freebsd-questions@FreeBSD.ORG; Tue, 18 Dec 2001 16:33:28 +0100 (CET) (envelope-from neuhauser@mobil.cz) X-Authentication-Warning: roman.mobil.cz: roman set sender to neuhauser@mobil.cz using -f Date: Tue, 18 Dec 2001 16:33:28 +0100 From: Roman Neuhauser To: FreeBSD Questions Subject: Re: Sending a notification email Message-ID: <20011218163328.K5427@roman.mobil.cz> Mail-Followup-To: FreeBSD Questions References: <1dd6fe1dc491.1dc4911dd6fe@mbox.com.au> <20011218141551.G5427@roman.mobil.cz> <3C1F5EC0.4070104@verizon.net> Mime-Version: 1.0 In-Reply-To: <3C1F5EC0.4070104@verizon.net> User-Agent: Mutt/1.3.23i X-MIMETrack: Itemize by SMTP Server on ester/Mobil(Release 5.0.7 |March 21, 2001) at 12/18/2001 04:24:12 PM, Serialize by Router on ester/Mobil(Release 5.0.7 |March 21, 2001) at 12/18/2001 04:24:18 PM, Serialize complete at 12/18/2001 04:24:18 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Tue, 18 Dec 2001 10:20:32 -0500 > From: Simon Morton > Cc: FreeBSD Questions > Subject: Re: Sending a notification email > > Roman Neuhauser wrote: > > >>me regular account, I want the mail server to simply to send a > >>notification email to my regular email account telling me that I have > >>received an email at the account which I don't normally check, as I > >>don't want huge emails being forwarded all over the place.... > >> > > > > Instead of using .forward to just send the mail to you, you can use > > pipe the message to a script that'll send just the headers, and > > store the message locally. I guess the MTA host will have procmail > > or maildrop installed, so this should be doable. > > > > > or, assuming that the huge mail is received by user joe, you could just > create a .forward file in joe's home directory containing the lines: > > |/path/to/myscript.sh > \joe > > where myscript.sh is a script that will send a notification email to > your regular email account, reading as much of the original mail as > it needs from stdin. Yes, that's exactly what I meant. Sorry for the confusion. I mentioned the two MDAs because they both have provisions for easy identifications of message size, header extraction etc. -- FreeBSD 4.4-STABLE 4:31PM up 1 day, 3:26, 11 users, load averages: 0.00, 0.04, 0.05 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message