🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #31237

Re: responding with tin?!?

#31237
From: Sandy Herring
Date: Thu, 13 Feb 1997 00:00
75 lines
3186 bytes
On 12 Feb 1997 22:38:05 GMT, Ken W <hazmat@shore.net> wrote:
>Is there any way to follow-up a post AND email the poster at the
>same time?  It seems that there should be, but.... :)
>
>Please email personally if possible.  Thanks!

Here's how...

	*	Cut and save the attached script (which was written by
		Scott Hagie and then modified and posted here by Phil
		Edwards). Put it in a directory that is in your path
		and make certain it's executable.

	*	Change the line in your tinrc that reads:

		default_editor_format=%E +%N %F

		...to read instead...

		default_editor_format=tincc %E +%N %F

		...assuming you've called the script you cut and saved
		'tincc'.

	*       Now you're ready for the BIG TEST. Follow up to a
		posting and insert 'Cc: towhom@it.may.concern.edu' in
		the header. After you're finished composing your
		follow-up and file it, the script will run and if there
		is a 'Cc: ' line present, ask you if you want to Cc the
		article to towhom@it.may.concern.edu, the default
		response being yepuhuhireallydo. After you reply to
		that, you get the normal tin dialog to actually post
		the article. If you decide to quit, well... too late to
		stop the email you Cc'd youknowwho@thereitgoes.gov!

The fact that your default shell is ksh and the script is /bin/sh don't
make no never mind.

I've switched to slrn, which has that capability (and much more) built
in.

cheers,
Sandy

======cut here=========================no! not here! back there!======
#!/bin/sh
# tincc
# Originally written by Scott Hagie (hagie@netcom.com)
# Customized by pedwards for his own use.
# [961216 sandy@herring.org (Sandy Herring)] - Changed to work on Solaris
#	use 'cut' rather than 'colrm'
#	change logic for choice test to send mail for response of y, Y or null

$*
if (echo $* | grep -s $HOME/.article) ; then
  msg=`sed '/^$/,$d' $HOME/.article | egrep -i '^cc: ' | cut -c 4-`
  if [ "$msg" != "" ] ; then
    echo "Do you want to Cc article to $msg (y/n)[y]? \c"
    read choice
    if [ "$choice" = "y" ] || [ "$choice" = "Y" ] || [ "$choice" = "" ] ; then
      echo "mailing Cc of article to $msg"
      /usr/lib/sendmail -oi -t < $HOME/.article
      sed '/^[Cc]c: /d' $HOME/.article > $HOME/article
      mv -f $HOME/article $HOME/.article
    fi
  fi
fi
======cut here=========================no! not here! back there!======

-- 
Sandy Herring                  Portland         Peck of Pickled Pisces
sandy@herring.org               Oregon          http://www.herring.org/

Technical Details
Message-ID: <slrn5g5e74.gat.sandy@www.sns-access.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <5dtgod$5p9@fridge-nf0.shore.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5g5e74.gat.sandy@www.sns-access.com>
Subject: Re: responding with tin?!?
Date: Thu, 13 Feb 1997 00:00:00 +0000
From: sandy@herring.org (Sandy Herring)
References: <5dtgod$5p9@fridge-nf0.shore.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 218637938
Organization: Peck of Pickled Pisces
X-URL: http://www.herring.org/
Reply-To: sandy@herring.org
Newsgroups: news.software.readers