Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!nbires!hao!boulder!sunybcs!rutgers!labrea!jade!ucbvax!dual.UUCP!uucp From: uucp@dual.UUCP (UNIX-to-UNIX Copy) Newsgroups: comp.mail.elm Subject: Submission for comp-mail-elm Message-ID: <8709131611.AA05877@tccc0.TFS> Date: Sun, 13-Sep-87 12:11:51 EDT Article-I.D.: tccc0.8709131611.AA05877 Posted: Sun Sep 13 12:11:51 1987 Date-Received: Mon, 14-Sep-87 04:16:52 EDT Sender: uucp@ucbvax.BERKELEY.EDU Lines: 100 Path: teknek!dual!ptsfa!ames!sdcsvax!ucbvax!uclachem.UUCP!uucp From: uucp@uclachem.UUCP (Unix-to-Unix copy program) Newsgroups: comp.mail.elm Subject: Submission for comp-mail-elm Message-ID: <8709131037.AA05209@ucbvax.Berkeley.EDU> Date: 13 Sep 87 08:26:42 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 91 Path: uclachem!cepu!trwrb!sdcrdcf!ucla-cs!zen!ucbvax!dual.UUCP!uucp From: uucp@dual.UUCP (UNIX-to-UNIX Copy) Newsgroups: comp.mail.elm Subject: Submission for comp-mail-elm Message-ID: <8709100626.AA11297@tccc0.TFS> Date: 10 Sep 87 06:26:00 GMT Sender: usenet@ucbvax.BERKELEY.EDU Lines: 82 Path: teknek!dual!ptsfa!ihnp4!cbosgd!ucbvax!dual.UUCP!uucp From: uucp@dual.UUCP (UNIX-to-UNIX Copy) Newsgroups: comp.mail.elm Subject: Submission for comp-mail-elm Message-ID: <8709071714.AA17591@crocodile.TFS> Date: 7 Sep 87 17:14:52 GMT Sender: usenet@ucbvax.BERKELEY.EDU Lines: 73 Path: teknek!dual!ptsfa!ames!sdcsvax!ucbvax!uclachem.UUCP!uucp From: uucp@uclachem.UUCP (Unix-to-Unix copy program) Newsgroups: comp.mail.elm Subject: Submission for comp-mail-elm Message-ID: <8709041957.AA12217@ucbvax.Berkeley.EDU> Date: 2 Sep 87 06:14:03 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 64 Path: uclachem!cepu!trwrb!ries From: ries@trwrb.UUCP (Marc Ries) Newsgroups: comp.mail.elm Subject: Error handling in messages + trim-headers Message-ID: <2581@trwrb.UUCP> Date: 31 Aug 87 23:43:19 GMT Reply-To: ries@trwrb.UUCP (Marc Ries) Distribution: usa Organization: TRW Operations and Support Group Lines: 53 I recently tried the "messages" shell script (never used it before), and got the error message: z[13]: test: argument expected Turns out that on our machine (Pyramid 98x OS 4.0), the MAIL variable (at least in the ucb universe) isn't set to anything, so that messages balks at "if [ -f ]; then". It would be nice to try and anticipate some of the possible error conditions. Locally, something like this works: #! /bin/sh if [ "$MAIL" = "" ]; then if [ "$LOGNAME" = "" ]; then echo "$0: need MAIL or LOGNAME variables set" exit 1 else if [ -d /usr/mail ]; then MAIL=/usr/mail/$LOGNAME else MAIL=/usr/spool/mail/$LOGNAME fi fi fi ... ALSO, does "trim-headers" work for anybody else? If I pass something like: Path: trwrb!sdcrdcf!oberon!cit-vax!ll-xn!husc6!husc4!gallagher From: gallagher@husc4.HARVARD.EDU (paul gallagher) Newsgroups: rec.arts.movies Subject: Re: Westerns Message-ID: <2778@husc6.UUCP> Date: 29 Aug 87 09:19:09 GMT References: <4VAiZCy00VsCgjo0dX@andrew.cmu.edu> <2551@trwrb.UUCP> Sender: news@husc6.UUCP Reply-To: gallagher@husc4.UUCP (paul gallagher) Organization: Harvard Univ. Science Center Lines: 19 That's exactly what I get back (ie, no "trimming" of the mail headers). -- Marc A. Ries sdcrdcf!---\ ihnp4!------\----- trwrb! --- ries