[net.sources.bugs] Rn bug -- saving articles

jdi@ucbvax.ARPA (John D. Irwin) (03/17/85)

I'm having a problem with the recently (well, I guess not so recently :-)
posted RN news reader.  I believe I have made all the fixes that were posted.

The problem is this -- when you save an article to a Mailbox type file, it
does not work.  The problem is that the line comes out like:

From bambi@behind-the-green-door.SMUTNET 

                                         ^^^^^^^^

										 Notice -- NO DATE.

I have CONDSUB defined, so I'm using the 'larger' MBOXSAVER define in common.h
-- but for some reason it isn't groking the date.

Suggestions?

--
John D. Irwin
ucbvax!jdi
jdi@berkeley.ARPA
jdi@psuvax1.BITNET

ken@turtlevax.UUCP (Ken Turkowski) (03/18/85)

In article <5540@ucbvax.ARPA> jdi@ucbvax.UUCP (John D. Irwin) writes:
>I'm having a problem with the recently (well, I guess not so recently :-)
>posted RN news reader.  I believe I have made all the fixes that were posted.
>
>The problem is this -- when you save an article to a Mailbox type file, it
>does not work.  The problem is that the line comes out like:
>
>From bambi@behind-the-green-door.SMUTNET 
>
>                                         ^^^^^^^^
>
>										 Notice -- NO DATE.
>
>I have CONDSUB defined, so I'm using the 'larger' MBOXSAVER define in common.h
>-- but for some reason it isn't groking the date.
>
>Suggestions?
>
>--
>John D. Irwin
>ucbvax!jdi
>jdi@berkeley.ARPA
>jdi@psuvax1.BITNET

I've solved this by invoking "date" in mbox.saver.  I use:
	( /bin/echo -n "$8 "; date
instead of:
	( /bin/echo "$8 "
The whole text follows below:

#!/bin/sh
# $Header: mbox.saver.SH,v 4.1 84/09/24 12:00:56 lwall Exp $
# 
# $Log:	mbox.saver.SH,v $
# Revision 4.1  84/09/24  12:00:56  lwall
# Real baseline.
# 
# Revision 4.0.1.2  84/09/12  15:21:16  lwall
# Check for sh interpretation.
# 
# Revision 4.0.1.1  84/09/04  15:09:34  lwall
# Fixed for Eunice "symbolic" links.
# 
# Revision 4.0  84/09/04  09:51:29  lwall
# Baseline for netwide release
# 
# 
#	Arguments:
#	1 Full name of article (%A)
#	2 Public news spool directory (%P)
#	3 Directory of current newsgroup (%c)
#	4 Article number (%a)
#	5 Where in article to start (%B)
#	6 Newsgroup name (%C)
#	7 Save destination (%b)
#	8 First line of message, normally From...
#
export PATH || (echo "OOPS, this isn't sh.  Desperation time.  I will feed myself to sh."; sh $0; kill $$)

( /bin/echo -n "$8 "; date
  /bin/echo "Article $4 of $6:"
  /usr/ucb/tail +$5c $1 | /bin/sed "s/^From/>From/"
  /bin/echo ""
  /bin/echo "" ) >> $7
-- 

Ken Turkowski @ CADLINC, Menlo Park, CA
UUCP: {amd,decwrl,nsc,seismo,spar}!turtlevax!ken
ARPA: turtlevax!ken@DECWRL.ARPA