home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2794 < prev    next >
Internet Message Format  |  1991-02-19  |  2KB

  1. From: grant@bluemoon.uucp (Grant DeLorean)
  2. Newsgroups: alt.sources
  3. Subject: Re: unbatcher out of sync?
  4. Message-ID: <1991Feb19.163942.26030@bluemoon.uucp>
  5. Date: 19 Feb 91 16:39:42 GMT
  6.  
  7. em@dce.ie (Eamonn McManus) writes:
  8.  
  9. >henry@zoo.toronto.edu (Henry Spencer) writes:
  10. >>It means "something's wrong with your batch":  relaynews did not find a
  11. >>"#! rnews nnnnn" line where one should have been.  Typically this means
  12. >>garbling during preparation or transmission.  One notorious trouble spot
  13. >>is that the batch format cannot tolerate transformations of newlines to
  14. >>CR-LF pairs; the byte counts in the "#! rnews" lines must be spot-on.
  15.  
  16. >We had `unbatcher out of sync' problems at a site I was involved in, which
  17. >was fed its news by mail from a VMS site (ugh).  The VMS mailer (PMDF) got
  18. >confused when lines exceeded 256 characters, as References lines often do,
  19. >and would make a total hash of the header when this happened.  As a result,
  20. >the "#! rnews" count would always be off by a small amount for the affected
  21. >article.  C News resyncs at the next "#! rnews" line, but if the count is
  22. >too long for the actual article contents it will have missed the start of
  23. >the article following the garbled one.
  24.  
  25.  The other way that relaynews can get out of sync is if there are two
  26. or three spaces between "#! rnews" and the number. I know at least
  27. ufgate's batcher does this (who cares, right?). The simple solution
  28. to this one is to have relaynews look again to find the number with
  29. the string length incremented by 1 (doing it again with the string length
  30. 2 longer than originally intended doesn't seem like a bad idea). 
  31. -- 
  32.  Grant DeLorean  (grant@bluemoon)    {n8emr|nstar}!bluemoon!grant
  33.