home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!news.tek.com!uw-beaver!uw-coco!nwnexus!amc-gw!pilchuck!fnx!sgihbtn!dkarr
- From: dkarr@sierra.com (David Karr)
- Subject: Re: How to redirect my new mail to a file
- Message-ID: <1992Nov10.165127.4351@sierra.com>
- Sender: news@sierra.com
- Nntp-Posting-Host: dopey
- Organization: Sierra Geophysics, Kirkland WA
- X-Newsreader: Tin 1.1 PL4
- References: <Bw8IGz.5LE@cs.bham.ac.uk>
- Date: Tue, 10 Nov 1992 16:51:27 GMT
- Lines: 34
-
- axs@cs.bham.ac.uk (Aaron Sloman) writes:
- : I wonder if anyone else has this problem: running HP-UX 8.0 on
- : a collection of HP machines linked to a network of Suns, we have
- : incoming mail going to /usr/mail/<name>
- :
- : My favourite editor (VED, in Poplog) provides a facility for reading
- : mail on Unix machines which starts by simply moving the mail file
- : to a private directory.
- :
- : But on the HP machines I am not allowed to truncate the file in
- : the system mail directory, so the file just gets longer and longer.
- :
- : If I try using .forward to direct incoming mail to a file in a protected
- : directory of my own (of course), I keep getting "cannot create" error
- : messages.
- :
- : Is there any way of either using "mv" to move the mail file, or
- : causing mail to come straight to a private file?
-
- Whenever I see someone running into a situation where they have to "filter"
- their mail, I recommend a package called "procmail" that you can get from
- your favorite source archive. Your need is for a very primitive level of
- filtering (filter everything), but the tool can get this done just as well.
- It allows you to specify a set of pairs (regular expression, action) such
- that if a new mail message is matched by the regular expression, then the
- action will be taken. This tool would be very useful if you get regular
- mail from either a mailing list or some sort of automated mail generation
- system, such that you want to store those messages in other than the normal
- mail repositories.
- --
- David M. Karr
- Sierra Geophysics, Inc.
- ARPA: dkarr@sierra.com, UUNET: uunet!sgihbtn!dkarr
- Phone: (206) 822-5200 (x343)
-