🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Guy Meacham Fri, 13 Dec 1996 00:00
Tin, reply and post?
#28381
Author: Guy Meacham
Date: Fri, 13 Dec 1996 00:00
17 lines
1172 bytes
I have become a great fan of tin. There is just one thing that really bugs
me, I can not reply to and post at the same time.
I have heard that there is a script to work around this, if this is true
would some one be kind enough to post it here. With some basic instuctions
on how to use it.(Using tin 1.3 & ksh shell)
Thanks a lot, Guy.

-- 
Guy Meacham.......................finger -l meacham@teleport.com
Rippingale Nursery...............http://www.rippingale.com/~meacham/
.                                      
"Three o'clock is always too late or too early for anything you want to
do."
                -- Jean-Paul Sartre

Re: Tin, reply and post?
#28424
Author: Sandy Herring
Date: Mon, 16 Dec 1996 00:00
77 lines
3391 bytes
NOTE:   The first time I tried to post this, it was rejected due to
	Teleport's admins tweaking the new news server (I am assuming),
	so here we go again. Sorry for the two emails, Guy - but I
	wanted to show you that this *does* work!

Guy Meacham (meacham@teleport.com) wrote:
: I have become a great fan of tin. There is just one thing that really
: bugs me, I can not reply to and post at the same time.  I have heard
: that there is a script to work around this, if this is true would some
: one be kind enough to post it here. With some basic instuctions on how
: to use it.(Using tin 1.3 & ksh shell)
: Thanks a lot, Guy.

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!

The fact that your default shell is ksh and the script is /bin/sh don't
make no never mind. No one should be really bugged at this time of year.
Consider this your Christmas gift :-)

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.
$*
if (echo $* | grep -s $HOME/.article) ; then
  msg=`sed '/^$/,$d' $HOME/.article | egrep -i '^cc: ' | colrm 1 4`
  if [ "$msg" != "" ] ; then
    /usr/bin/echo -n "Do you want to Cc article to $msg (y/n)[y]? "
    read choice
    if [ "$choice" != "y" ] ; then
      /usr/bin/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/

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