Date: Tue, 18 Dec 2001 16:33:28 +0100 From: Roman Neuhauser <neuhauser@mobil.cz> To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Sending a notification email Message-ID: <20011218163328.K5427@roman.mobil.cz> In-Reply-To: <3C1F5EC0.4070104@verizon.net> References: <1dd6fe1dc491.1dc4911dd6fe@mbox.com.au> <20011218141551.G5427@roman.mobil.cz> <3C1F5EC0.4070104@verizon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Tue, 18 Dec 2001 10:20:32 -0500 > From: Simon Morton <simon.morton@verizon.net> > Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011218163328.K5427>