Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site turtlevax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!turtlevax!ken From: ken@turtlevax.UUCP (Ken Turkowski) Newsgroups: net.sources.bugs Subject: Re: Rn bug -- saving articles Message-ID: <694@turtlevax.UUCP> Date: Mon, 18-Mar-85 14:22:35 EST Article-I.D.: turtleva.694 Posted: Mon Mar 18 14:22:35 1985 Date-Received: Wed, 20-Mar-85 04:08:25 EST References: <5540@ucbvax.ARPA> Reply-To: ken@turtlevax.UUCP (Ken Turkowski) Organization: CADLINC, Inc. @ Menlo Park, CA Lines: 69 Summary: 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