Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site oddjob.UChicago.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!ucbvax!ucbcad!tektronix!uw-beaver!cornell!vax135!houxz!houxm!ihnp4!gargoyle!oddjob!matt From: matt@oddjob.UChicago.UUCP Newsgroups: net.bugs,net.news.b Subject: articles saved from readnews 2.10.1 have cruddy "From " line Message-ID: <296@oddjob.UChicago.UUCP> Date: Fri, 15-Jun-84 18:46:19 EDT Article-I.D.: oddjob.296 Posted: Fri Jun 15 18:46:19 1984 Date-Received: Tue, 19-Jun-84 01:19:03 EDT Organization: U. Chicago: Astronomy & Astrophysics Lines: 34 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