/usr/spool/mail filter/editor?

Murray S. Kucherawy murray at motto.UUCP
Thu Jan 24 04:41:54 AEST 1991


nichols at en.ecn.purdue.edu.UUCP writes:
>I am interested in a shell script that will, upon execution, view
>the contents of the /usr/spool/mail/lname file and remove any mail
>from a certain user or list of users.  I'm sure it has been done
>many times, but I don't have the skills yet to write it on my own.

I can provide two alternatives:

1) "Elm" is distributed (I think) with a program called "filter",
and you write a script for it to handle certain mail a certain way as
it arrives;

2) "Mush" has the capability to do this much easier, IMHO.

I don't have shell scripts that do what you ask, but both of those mail
packages have the capacity to do what you want.

=============================== Murray S. Kucherawy ==========================
Motorola Canada, Ltd.     Communications Division, Toronto      [on work term]
University of Waterloo, Ontario, Canada               2B Math/Computer Science
Internet: murray at motto.UUCP (work)       mskucherawy at watmath.UWaterloo.ca (UW) 
UUCP:     uunet!utai!lsuc!motto!murray   uunet!watmath!mskucherawy



More information about the Comp.unix.shell mailing list