Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!kuhub.cc.ukans.edu!sloane From: SLOANE@kuhub.cc.ukans.edu (Bob Sloane) Newsgroups: news.software.anu-news Subject: Re: add file for VMSmail extracted files broken? Message-ID: <11412@kuhub.cc.ukans.edu> Date: 13 Sep 89 20:07:01 GMT References: <8909070205.AA07083@vrdxhq.verdix.com> <302@gp.govt.nz> Organization: University of Kansas Academic Computing Services Lines: 45 In article <302@gp.govt.nz>, GPWRMDH@gp.govt.nz (Martin D. Hunt) writes: > Try using EXTRACT/NOHEADER instead of EXTRACT. Sigh. The NEWS ADD FILE command is designed to process mail files that have been extracted WITH the mail headers. NEWS looks for From: Path: NPath: Relay-Version: NRelay-Version: or #!rnews N#!rnews to tell where the current article ends and the next article begins. In addition, it keeps processing headers until a Newsgroup: header is found, eg: From: someone To: me CC: Subj: something Received: ... Received: ... other mailer headers... #!rnews Path: ... Newsgroups: ... ... would be treated as ONE set of headers, even though there are actually three sets of headers there. See the routine add_file in NEWSADD.C, where it does: while ( scan_header() ); While it might work to use EXTRACT/NOHEADER is some cases, it is probably not a good idea in the general case. Again, I would be glad to look at this problem, but I can't seem to get NEWS to fail adding EXTRACTed files. Could someone send me a file that causes the problem? Preferable a small one. :-) -- USmail: Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045 E-mail: sloane@kuhub.cc.ukans.edu, sloane@ukanvax.bitnet, AT&T: (913)864-0444 "The scientific theory I like best is that the rings of Saturn are composed entirely of lost airline luggage." -- Mark Russell