Article View: news.software.readers
Article #33432Re: posting and replying in tin at the same time
From: Sandy Herring
Date: Fri, 09 May 1997 00:00
Date: Fri, 09 May 1997 00:00
71 lines
3241 bytes
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/
Technical Details
Message-ID:
<5kvq5o$n85$1@nntp.structured.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-mailReferences:
<5kv3o0$f9t@kensie.dorsai.org>Show Full Headers
Complete Article Headers
Message-ID: <5kvq5o$n85$1@nntp.structured.net> Subject: Re: posting and replying in tin at the same time Date: Fri, 09 May 1997 00:00:00 +0000 From: sandy@herring.org (Sandy Herring) References: <5kv3o0$f9t@kensie.dorsai.org> 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: 240603629 Organization: Peck of Pickled Pisces X-URL: http://www.herring.org/ Reply-To: sandy@herring.org Newsgroups: news.software.readers