🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by matt Fri, 15 Jun 1984 22:46
articles saved from readnews 2.10.1 have cruddy "From " line
#226
Author: matt
Date: Fri, 15 Jun 1984 22:46
33 lines
1717 bytes
Index:	rfuncs2.c FIX

Description:
	The readnews "s" command creates a unix From line so that saved
	articles can be perused with mail.  This from line has a garbaged
	date and on our system, mail won't even recognize this as a From
	line.
Repeat-By:
	Save this article with "s- phile", then do "head -1 phile | cat -v"
Fix:
	In the routine save() in rfuncs2.c, hh.subtime is used without
	being set.  Hread() does not set this field.  Add one line to
	save():
---------------
 	/*
 	 * V7MAIL code is here to conform to V7 mail format.
 	 * If you need a different format to be able to
 	 * use your local mail command (such as four ^A's
 	 * on the end of articles) substitute it here.
 	 */
 #ifdef V7MAIL
+ 	hh.subtime = cgtdate(hh.subdate); /* NOT SET BY hread() */
 	fprintf(ufp, "From %s %s",
 #ifdef INTERNET
 				hh.from,
 #else
 				hh.path,
 #endif
 					ctime(&hh.subtime));
 #endif
___________________________________________________________
Matt		University	ARPA: crawford@anl-mcs.arpa
Crawford	of Chicago	UUCP: ihnp4!oddjob!matt
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