Article View: news.software.readers
Article #28424Re: Tin, reply and post?
From: Sandy Herring
Date: Mon, 16 Dec 1996 00:00
Date: Mon, 16 Dec 1996 00:00
77 lines
3391 bytes
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/
Technical Details
Message-ID:
<592u9e$3lc@maureen.teleport.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-mailReferences:
<58qkfn$h49@maureen.teleport.com>Show Full Headers
Complete Article Headers
Message-ID: <592u9e$3lc@maureen.teleport.com> Subject: Re: Tin, reply and post? Date: Mon, 16 Dec 1996 00:00:00 +0000 From: shh@teleport.com (Sandy Herring) References: <58qkfn$h49@maureen.teleport.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 X-Deja-AN: 204352549 Organization: Peck of Pickled Pisces Reply-to: sandy@herring.org Newsgroups: news.software.readers,teleport.unix