🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32112

Re: Tin 1.3: cc'ing with a followup?

#32112
From: Sandy Herring
Date: Thu, 13 Mar 1997 00:00
63 lines
2936 bytes
On 12 Mar 1997 21:17:37 GMT, Tabor Wells <twells@shore.net> wrote:
>Once upon a time a kind user at Netcom wrote a script for Tin 1.2 called
>tincc, which when invoked as the default editor in tin would allow a user
>to add a Cc: header to their followup and email it to the person Cc'd.
>
>Using tin 1.3 unoff beta 19970212, I seem to be unable to get tincc to
>work. Has anyone had any luck using tincc with 1.3 unoff (or any other
>method of cc'ing on followup)? TIA,

I've switched from tin to slrn, which has cc'ing built in. But if you
insist on riding around in a tin lizzie <grin>, here's my mods to Scott
Hagie's original tincc (which was modified by Phil Edwards before I had
at it)...

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

It worked fine for me with tin 1.3-unoff after doing the following...

	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'.

All you need do then is add a cc: line to your header when you followup
and the script will issue a safety prompt to verify your intention
before invoking sendmail.

cheers,
Sandy
-- 
Sandy Herring              Portland, Oregon          Peck of Pickled Pisces
sandy@herring.org       bigfish@sns-access.com       http://www.herring.org/

Technical Details
Message-ID: <5g7ml4$g8u$1@news.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-mail
References: <5g76hh$c49@fridge-nf0.shore.net>

Show Full Headers
Complete Article Headers
Message-ID: <5g7ml4$g8u$1@news.structured.net>
Subject: Re: Tin 1.3: cc'ing with a followup?
Date: Thu, 13 Mar 1997 00:00:00 +0000
From: sandy@herring.org (Sandy Herring)
References: <5g76hh$c49@fridge-nf0.shore.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-mail
X-Deja-AN: 225074802
Organization: Peck of Pickled Pisces
X-URL: http://www.herring.org/
Reply-To: sandy@herring.org
Newsgroups: news.software.readers