Controlling Biff
Chip Salzenberg
chip at tct.uucp
Fri Feb 16 00:53:58 AEST 1990
According to schisto at popvax.harvard.edu (]none):
> I would very much like to control the "biff" command. As i've
>seen in the 4.3BSD manual and our on-line Ultrix 3.0 manual, i only
>have the option of turning biff on or off. The control i seek would
>ideally allow me to set biff to write to screen as much of the incoming
>message as i would like.
As usual, you can do it with Deliver 2.0. My .deliver file -- the
shell script that controls mail delivery, each user can create one --
notifies me when mail arrives. Here it is:
# Delivery for Chip
PATH=/bin:/usr/bin:/u/local/bin ; export PATH
user="$1"
echo $user
for tty in `who | awk '$1 == "'"$user"'" { print $2 }'`
do
f="`header -f from $HEADER`"
[ "" != "$f" ] || f="$SENDER"
m="Hey! You have new mail from $f."
echo "\n>>> $m <<<\n" >>/dev/$tty 2>/dev/null
done
If you want the header, or specific fields thereof, you can add some
commands. Use:
cat $HEADER >>/dev/$tty
for the whole header, or:
header -n -f from -f to -f subject $HEADER >>/dev/$tty
for those specific fields. Possible actions on mail delivery are
limited only by the imagination.
Deliver 2.0, at finer archive sites everywhere.
Not Just Another Deliver Hacker,
--
Chip Salzenberg at ComDev/TCT <chip at tct.uucp>, <uunet!ateng!tct!chip>
"The Usenet, in a very real sense, does not exist."
More information about the Comp.unix.questions
mailing list