Thread View: news.software.readers
3 messages
3 total messages
Started by Sridhar Venkataraman
Sat, 21 Aug 1993 13:54
Bug in pine (when called using a script from trn) ...
Author: Sridhar Venkataraman
Date: Sat, 21 Aug 1993 13:54
Date: Sat, 21 Aug 1993 13:54
79 lines
3224 bytes
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>
Re: Bug in pine (when called using a script from trn) ...
Author: Kelly Cunningham
Date: Sat, 21 Aug 1993 16:48
Date: Sat, 21 Aug 1993 16:48
66 lines
3514 bytes
3514 bytes
In article <sridhar.21Aug93.070055@enuxsa.eas.asu.edu> you write:
>
>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.
>
It might be the length of the e-mail address. We had a similar problem
just using pine (replies tended to cause aborts). Below is a possible fix.
# From mikes@cac.washington.edu Sat Aug 21 11:39:32 1993
# Date: Mon, 29 Mar 1993 11:48:36 -0800 (PST)
# From: Michael Seibel <mikes@cac.washington.edu>
# To: pine-announce@cac.washington.edu, pine-info@cac.washington.edu
# Subject: Bug in 3.05 and maintenance release...
#
# We've recently become aware of a particularly nasty bug in pine 3.05 that
# results in pine's crashing as the message composer is entered. The
# problem has to do with insufficient date string allocation, and, at many
# sites, is exacerbated by a recent change to daylight savings time.
#
# Thanks to the quick work of Steinar Haug, a fix is available and included
# below. Additionally, work is underway on a maintenance release of pine to
# fix this and a number of other bugs. It will be made available in the
# next day or so.
#
# Apologies for any problems this has caused, and, as always, thanks for
# your interest in pine.
#
# Michael Seibel
# Networks and Distributed Computing mikes@cac.washington.edu
# University of Washington, Seattle (206) 543 - 0359
#
#
# On Sun, 28 Mar 1993, Steinar Haug wrote, in part:
#
#> I made the following simple fix to pine_send():
#> ----------------------------------------------------------------------
#> *** send.c.orig Mon Aug 31 23:48:27 1992
#> --- send.c Sun Mar 28 16:08:53 1993
#> ***************
#> *** 441,447 ****
#>
#> /*----- Fill in a few general parts of the envelope ----*/
#> if(outgoing->date == NULL)
#> ! outgoing->date = fs_get(40); /* Date's always 30 or so */
#> rfc822_date(outgoing->date);
#>
#> if(outgoing->subject == NULL) {
#> --- 441,447 ----
#>
#> /*----- Fill in a few general parts of the envelope ----*/
#> if(outgoing->date == NULL)
#> ! outgoing->date = fs_get(50); /* Date's up to 42 characters */
#> rfc822_date(outgoing->date);
#>
#> if(outgoing->subject == NULL) {
#> ----------------------------------------------------------------------
--
-- kc
"Living right doesn't really make you live longer, it just *seems* longer."
Re: Bug in pine (when called using a script from trn) ...
Author: Sridhar Venkataraman
Date: Sat, 21 Aug 1993 17:36
Date: Sat, 21 Aug 1993 17:36
31 lines
1941 bytes
1941 bytes
I wrote: | >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. deviate@lipschitz.sfasu.edu (Kelly Cunningham) writes: | It might be the length of the e-mail address. We had a similar problem | just using pine (replies tended to cause aborts). Below is a possible fix. [The fix for pine from the U of W folks deleted. Thanks!] The long date line was the problem for me! I am not in an official position to fix it right away so I patched up the script I posted with the change from: \1/g" >> /tmp/sed.$$ to Date: $dat2/g" >> /tmp/sed.$$ Not quite right but it works for now! I have tweaked the script quite a bit and so no diff(s)! Sridhar. -- Sridhar Venkataraman ASU, Tempe, Arizona USA sridhar@asuvax.eas.asu.edu <A HREF="http://homecheese.eas.asu.edu/people/sridhar.html">Sridhar.</A>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads