Article View: news.software.readers
Article #21492Re: Follow up Posting and Emailing reply with tin1.2
From: billy
Date: Fri, 10 May 1996 00:00
Date: Fri, 10 May 1996 00:00
58 lines
2661 bytes
2661 bytes
Padu Nellayappan <padu@crl.com> writes:
> How does one post a follow up reply to the news group and mail it to the
> author at the same time ?
See below.
Billy Y..
Newsgroups: news.software.readers
>From: jhurwit@netcom.com (Jeffrey Hurwit)
Subject: TIN - How Do I Post and Mail Simultaneously?
Date: Sat, 6 Jan 1996 07:43:44 GMT
The question seems to come up in this group from time to time, about
"How do I post an article *and* e-mail it to someone at the same time?"
Short answer: Tin doesn't have this feature-- you need to use a script.
This script was first introduced in a local newsgroup at our site by
hagie@netcom.com (Scott Hagie), and was improved upon by many others.
I've added my own changes as well. Clip out the following, name it
'tincc', save it to $HOME/bin, and then do 'chmod u+x bin/tincc' at
your shell prompt.
--------------------------------cut here-------------------------
#! /bin/sh
$*
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)? "
read choice
if [ "$choice" = "y" ] ; then
/usr/bin/echo "mailing Cc of article to $msg"
/usr/lib/sendmail -oi -t < $HOME/.article
sed '1,/^$/{;/^[Cc]c: /d;}' $HOME/.article > $HOME/article
mv -f $HOME/article $HOME/.article
fi
fi
fi
---------------------------------cut here--------------------------
Then, change your .tin/tinrc file as follows:
# Format of editor line including parameters
# %E Editor %F Filename %N Linenumber
default_editor_format=$HOME/bin/tincc %E +%N %F
Then, whenever you want to post an article and e-mail it to someone as
well, just add a Cc: header to the other headers (just under the
Subject: header works nicely). The script will prompt you just to make
sure, and send the article if you answer "y", before it alloows Tin to
post it.
Jeff
Technical Details
Message-ID:
<4n0d97$rtu@nnrp1.news.primenet.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:
<4mr0av$6qr@crl9.crl.com>Show Full Headers
Complete Article Headers
Message-ID: <4n0d97$rtu@nnrp1.news.primenet.com> Subject: Re: Follow up Posting and Emailing reply with tin1.2 Date: Fri, 10 May 1996 00:00:00 +0000 From: billy@mix.com References: <4mr0av$6qr@crl9.crl.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: 154192346 Sender: root@primenet.com Organization: Billy's Place X-posted-by: billy@usr07.primenet.com Newsgroups: news.software.readers