🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by *selah* Fri, 09 May 1997 00:00
posting and replying in tin at the same time
#33438
Author: *selah*
Date: Fri, 09 May 1997 00:00
5 lines
628 bytes
Anyone know if there's a way to followup to an article and reply to the 
author at the same time using tin?

Re: posting and replying in tin at the same time
#33432
Author: Sandy Herring
Date: Fri, 09 May 1997 00:00
71 lines
3241 bytes
On 9 May 1997 12:02:08 GMT, *selah* <soma@smtp.dorsai.org> wrote:
>Anyone know if there's a way to followup to an article and reply to the 
>author at the same time using tin?

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, like I've done above. 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!

cheers,
Sandy [previously a `tin` user, now happily a `slrn` convert :) ]

======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!======

NOTE:   Some versions of `echo` do not recognize "\c" as an escape
	sequence for cancelling the printing of a newline. If you run
	into that, use `echo -n "blah blah"` instead.
-- 
Sandy Herring               Tigard, Oregon           Peck of Pickled Pisces
sandy@herring.org       bigfish@sns-access.com       http://www.herring.org/

Re: posting and replying in tin at the same time
#33436
Author: Kenneth P. Turvey
Date: Fri, 09 May 1997 00:00
51 lines
2080 bytes
*selah* <soma@smtp.dorsai.org> wrote:
: Anyone know if there's a way to followup to an article and reply to the 
: author at the same time using tin?

The only way I know to do this is to use a script as your mailer.  The
script I am using (I don't remember where I got it.  I didn't write it
myself though.) is below:

---

#!/bin/sh
# Originally written by Scott Hagie (hagie@netcom.com)
# Customized by pedwards for his own use.

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

---

After you have this set as your default mailer (see the tinrc file)
you simply add a Cc: header to outgoing posts and it mails them for
you.

That's it.


I hope this helps,

-- 
Kenneth P. Turvey <kturvey@pug1.SprocketShop.com> 
	Finger my account for PGP key info.
-----------------------------------------------------------------------
It behooves every man who values liberty of conscience for himself, to
resist invasions of it in the case of others:  or their case may, by
change of circumstances, become his own.
	-- Thomas Jefferson

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads