Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!luth!sunic!bmc!bio.embnet.se!mats From: Mats.Sundvall@bio.embnet.se Newsgroups: news.software.anu-news Subject: Re: 822 header lines in MAIL messages Message-ID: <29.2584c04c@bio.embnet.se> Date: 12 Dec 89 08:09:32 GMT References: <8912102136.AA07018@uunet.uu.net> Organization: Embnet node in Sweden at Biomedical Center, University of Uppsala, Sweden Lines: 30 In article <8912102136.AA07018@uunet.uu.net>, munnari!csc.anu.oz.au!gih900@UUNET.UU.NET (Geoff Huston) writes: >>I hope you can handle something like: >> >>Problem: I actually saw an article that was posted like this. I started out >> with something that looked like an RFC822 mail header, but was >> actually several thousand characters of text that were the body of >> the message. An older version of news die horribly when processing >> this message because it thought the line was a (continued) header and >> tried to read it all in. The fix you put in news was to stop reading >> headers when you found a Newsgroups: header line. How will you handle >> something like this in mail? > > The modifications to the mail reader will NOT handle this case - with the > leading blanks in subsequent lines this is a valid RFC822 header (!) > > Geoff Huston If my memory still serves me I do not agreee. An RFC header continues until the first blank (empty, null) line. Then comes the body. What this means is that you do not have to check for valid headers, you only have to check for a blank line. Of course letting the messages pass VAX-11 mail will break everything. It only handles From: To: and CC:. The rest of the headers you have to put in the body of the message, if you want to keep them. Of course I may be wrong. I have to look into the RFC, Mats Sundvall Uppsala University Sweden