🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #2306

Re: Tin $MAILER?

#2306
From: Gary Fritz
Date: Thu, 01 Oct 1992 00:00
30 lines
1465 bytes
Until Iain comes out with his latest-greatest, pointing $MAILER at
this script seems to be working pretty well...

Gary

=============================================================================

draftfile=`mhpath +drafts new`
comp=/usr/local/bin/mh/comp

# Tin invokes $MAILER as:  $MAILER address < message-to-send
# Insert an "Fcc:" in the mail header to provide outgoing mail recording.

cat |
awk ' { if ( $1 == "Subject:") {
	  print $0;
	  print "Fcc: outbox";
	  }
	else
	  print $0;
      }' > $draftfile		# Save message from stdin
exec < /dev/tty			# Reset stdin to tty

if test -f $HOME/.signature
then
  echo "--" >> $draftfile
  cat $HOME/.signature >> $draftfile
fi

$comp -nodraftfolder -use -file $draftfile -noedit
Technical Details
Message-ID: <BvF1Cu.HBz@fc.sde.hp.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!ogicse!uwm.edu!caen!sdd.hp.com!hp-col!hpfcnfs.sde.hp.com!fritz
References: <BvAxzx.J7@fc.sde.hp.com>

Show Full Headers
Complete Article Headers
Message-ID: <BvF1Cu.HBz@fc.sde.hp.com>
Subject: Re: Tin $MAILER?
Date: Thu, 01 Oct 1992 00:00:29 +0000
From: fritz@fc.sde.hp.com (Gary Fritz)
References: <BvAxzx.J7@fc.sde.hp.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!ogicse!uwm.edu!caen!sdd.hp.com!hp-col!hpfcnfs.sde.hp.com!fritz
Newsgroups: news.software.readers
Article-I.D.: fc.BvF1Cu.HBz
Sender: news@fc.sde.hp.com (Notes Administrator)
Organization: HP SESD, Fort Collins, CO
Lines: 30
X-Newsreader: TIN [version 1.1.4 PL6]