Path: utzoo!attcan!uunet!ateng!chip From: chip@ateng.com (Chip Salzenberg) Newsgroups: comp.mail.elm Subject: Re: Suggestions for next Elm release Keywords: elm -u user, better elm/readmsg integration Message-ID: <251A94F1.12570@ateng.com> Date: 22 Sep 89 20:24:16 GMT References: <68093@uunet.UU.NET> Organization: A T Engineering, Tampa, FL Lines: 36 According to asp@uunet.UU.NET (Andrew Partan): >How about adding a -u flag to elm? This would start up elm to >read the user's mailbox (assuming permissions to do so). Don't hack elm, write a shell script: : elmu # Shell script to read mail belonging to given user u="$1" shift m="/usr/spool/mail/$u" if [ ! -s $m ] then echo "No mail for $u" exit 1 fi if [ ! -r $m ] then echo "Can't read $u's mail" exit 1 fi elm -f $m ${1+"$@"} Like, Elm is big enough already. -- You may redistribute this article only to those who may freely do likewise. Chip Salzenberg at A T Engineering; or "If you push something hard enough, it will fall over." -- Fudd's First Law of Opposition