🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #5415

Bug in pine (when called using a script from trn) ...

#5415
From: Sridhar Venkataraman
Date: Sat, 21 Aug 1993 13:54
79 lines
3224 bytes
[Sorry for previous posting which has since been cancelled.]

The problem goes as follows:

Since reading digests using trn is a pain (IMO) over a 2400 baud link, I
used this macro to call a script named dig (indiad is just an argument to
tell the script that it is a digest appearing on bit.listserv.india-d. I
tried this on comp.risks and so it may work for any general digest with some
tweaking). This should work for rn too. I haven't tested much with "Mail" or
elm but it works.

Here is my .rnmac entry:
D !dig %t %A indiad

Here is the script:
-=- dig -=-

#!/bin/sh
# digest splitter - sridhar@asuvax.eas.asu.edu

mail="pine -i"				# Your choicest mail program
#mail=elm
#mail=Mail

arg1=$1					# rn-specific = %t
arg2=$2					# rn-specific = %A
arg3=$3					# inn or indiad
sedfile=/tmp/sed.$$			# temp file for sed script
digest=/tmp/digest.$$			# temp file for digest messages
dat1=`date`				# date in Unix 'date' format
dat2=`sed -n '1,/^$/s/^Date: //p' $2`	# date as in original posting


pat1="^#[0-9\ ]*\(.*\)\$"		# For pat1 - INN digest
pat2="^\(Date: .*\)\$"			# For pat2 - India-D digest

echo "From India-d $dat1" > $digest	# Mail messages have to start this way
					# Replace pat? with appropriate headers

case $arg3 { 
# The foll. is for India-D digests (Remove # if you want this)
	indiad)
echo "s/$pat2/From editor $dat1\\
\1/g" >> /tmp/sed.$$                    
	;;

# The foll. is for INN digests (Remove # if you want this)

	*)
echo "s/$pat1/From editor $dat1\\
From: $1\\
Date: $dat2\\
Subject: \1/g" >> $sedfile
	;;
	}

sed -f $sedfile $2 >> $digest		# sed will split digest into messages
$mail -f $digest			# Invoke your mail program
/bin/rm $digest $sedfile		# Remove the temporary files
 
-=- End of dig -=-

There is no problem reading the digests with pine. But in trying to reply
from any individual message, Pine aborts! causing trn to abort too. I don't
have any clues but it says "bug in pine detected". Anyone having a solution
to this problem can post/email. In the absence of any idea about the
problem, I am not inclined to bug the U of W folks about this.

Thanks in anticipation.

Followups to comp.mail.misc since I don't think it is in any way
*rn-related.

Sridhar.
-- 
Sridhar Venkataraman   ASU, Tempe, Arizona USA   sridhar@asuvax.eas.asu.edu

  <A HREF="http://homecheese.eas.asu.edu/people/sridhar.html">Sridhar.</A>
Technical Details
Message-ID: <sridhar.21Aug93.070055@enuxsa.eas.asu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.misc.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!gatech!asuvax!ennews!enuxsa.eas.asu.edu!sridhar

Show Full Headers
Complete Article Headers
Message-ID: <sridhar.21Aug93.070055@enuxsa.eas.asu.edu>
Subject: Bug in pine (when called using a script from trn) ...
Date: Sat, 21 Aug 1993 13:54:36 GMT
From: sridhar@asuvax.eas.asu.edu (Sridhar Venkataraman)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.misc.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!gatech!asuvax!ennews!enuxsa.eas.asu.edu!sridhar
Newsgroups: comp.mail.misc,news.software.readers
Followup-To: comp.mail.misc
Originator: sridhar@enuxsa.eas.asu.edu
Sender: news@ennews.eas.asu.edu (USENET News System)
Organization: Arizona State University, Tempe AZ
Lines: 78