Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!wuarchive!uunet!zephyr.ens.tek.com!tektronix!sequent!edw From: edw@sequent.UUCP (Ed Wright) Newsgroups: comp.unix.shell Subject: Re: /usr/spool/mail filter/editor? Message-ID: <50855@sequent.UUCP> Date: 17 Jan 91 19:30:29 GMT References: <1991Jan16.185727.15843@en.ecn.purdue.edu> Reply-To: edw@sequent.UUCP (Ed Wright) Organization: Orygun Society For HUman Rustabillity Assessment Lines: 20 In article <1991Jan16.185727.15843@en.ecn.purdue.edu> nichols@en.ecn.purdue.edu (Scott P Nichols) 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. % %Anyone been hacking away at something like this? The elm mailer has a lovely set of filters. I have found that once installed the filters keep my berzerkely mail cleaned up too. You can take such actions as delete, save to file , forward based on subject who from and combinations. Ed -- I think I've got the hang of it now .... :w :q :wq :wq! ^d X exit X Q :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZ ZZZZ ^H ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D ^d ^C ^c helpexit ?Quit ?q decwrl or uunet or tek !sequent!edw