[428] in Zephyr_Comments
zephyr reply
daemon@ATHENA.MIT.EDU (brlewis@ATHENA.MIT.EDU)
Tue Mar 20 11:18:42 1990
From: brlewis@ATHENA.MIT.EDU
Date: Tue, 20 Mar 90 11:18:40 -0500
To: zephyr-comments@ATHENA.MIT.EDU
I have a simple method for replying to the last message sent to you.
I think it should go in /mit/zephyr/examples.
Add these two lines to the end of .cshrc.mine:
alias zr 'set sender = `cat /tmp/sender.${user}@*` &&\\
echo zwrite $sender \!* && zwrite $sender \!*'
Add these five lines to the beginning of .zwgc.desc:
if ($recipient != "*") then
outputport "replyfile" "/tmp/sender."+$recipient
put "replyfile" $sender+"\n"
closeoutput "replyfile"
endif
Although zr takes all the zwrite options, I would suggest avoiding zr
-m because somebody else might zwrite you while you're typing, and the
reply will go to the wrong place.
The +$recipient and ${user}@* part is probably redundant, since two
people aren't likely to be using zr on the same machine at the same
time. But I like to be safe.
If you get a "No match" error, it means the sender file isn't there.
Bruce