🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mh
Article #1880

Re: Kill file for mhmail?

#1880
From: David Elliott
Date: Wed, 17 May 1989 15:25
43 lines
2188 bytes
In article <3634@udccvax1.acs.udel.EDU> hoppi@vax1.acs.udel.EDU (David P Hopkins) writes:
>Does anyone know if there is a way to have the computer screen the incoming
>mail and either delete or send to another file, mail that is from a certain
>person? ...

See the manual page for mhook.  It describes a program called slocal,
which can be called from your .forward file (assuming you are running
sendmail) and reads a file called ~/.maildelivery to decide what to
do.  Here is a copy of my old .maildelivery file:


	# anything from bugent - destroy!
	From	bug		destroy	A	-
	Subject	bugsys:		destroy A	-
	# Sources and bugs from the net
	Subject	BUGFROMNET	|	?	".bin/put_in_folder +Bugs"
	Subject	SRCFROMNET	|	?	".bin/put_in_folder +Sources"
	# Stuff to root and uucp goes into a file for perusal
	To	root		|	?	"cat >> xxx"
	Apparently-To	root	|	?	"cat >> xxx"
	To	uucp		|	?	"cat >> xxx"
	Apparently-To	uucp	|	?	"cat >> xxx"

The first set of entries tossed out anything from our bug tracking
system (I was getting 20-30 messages a day).

The second set was used in concert with a set of news commands I
had to put sources and bug information in folders.  There are
easier ways to do this, but I didn't know that at the time.

The last set stuck all administrative mail in a file called xxx,
which I would read and toss each day.

All messages not matching an entry would be appended to my
/usr/spool/mail file.

This system works fine as long as you don't have system administrators
who insist that all uses of .forward will cause mail loops and have
automatic .forward removers.

-- 
David Elliott		dce@Solbourne.COM
			...!{boulder,nbires,sun}!stan!dce
Technical Details
Message-ID: <1166@marvin.Solbourne.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!tut.cis.ohio-state.edu!unmvax!ncar!boulder!stan!dce
References: <3634@udccvax1.acs.udel.EDU> <14523@duke.cs.duke.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!tut.cis.ohio-state.edu!unmvax!ncar!boulder!stan!dce
From: dce@Solbourne.COM (David Elliott)
Newsgroups: comp.mail.mh
Subject: Re: Kill file for mhmail?
Message-ID: <1166@marvin.Solbourne.COM>
Date: 17 May 89 15:25:45 GMT
References: <3634@udccvax1.acs.udel.EDU> <14523@duke.cs.duke.edu>
Reply-To: dce@Solbourne.com (David Elliott)
Organization: Solbourne Computer Inc., Longmont, Colorado
Lines: 43