home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume12
/
cnews
/
part01
/
lib.proto
/
newsreply.from
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1987-10-19
|
344 b
|
21 lines
#! /bin/sh
# newsreply - print return address from news article on stdin
# This version assumes a domain mailer (user@host.domain works)
F=/tmp/nc$$
cat >$F
SENDER="`grep '^Reply-To:' $F | sed 's/^[^:]*://
s/ (.*)//
1q' `"
case "$SENDER" in
"")
SENDER="`grep '^From:' $F | sed 's/^[^:]*://
s/ (.*)//
1q' `"
;;
esac
echo "$SENDER"
rm -f $F