mush fix

Greg Lee lee at uhccux.uhcc.hawaii.edu
Tue Sep 20 11:42:45 AEST 1988


I use mush to review batches of news articles, and sometimes the
body of a follow-up begins "From article ...".  Of course that
fouls up the mechanism for dividing one piece of mail from another.
The symptom is that mush reports an error -- bad date.  The following
minor change seems to fix the problem.  The patch is for mush v 6.3.

		Greg, lee at uhccux.uhcc.hawaii.edu

*** msgs.c.orig	Mon Sep 19 12:01:58 1988
--- msgs.c	Mon Sep 19 11:56:54 1988
***************
*** 354,360
  
      while (fgets(line, BUFSIZ, mail_fp) != NULL) {
  #ifndef MSG_SEPARATOR
! 	if (!strncmp(line, "From ", 5) &&
  	    !sscanf(line+5, "%*s %*s %*s %*d %*d:%*d"))
  #else /* MSG_SEPARATOR */
  	if (!strncmp(line, MSG_SEPARATOR, len))

--- 354,360 -----
  
      while (fgets(line, BUFSIZ, mail_fp) != NULL) {
  #ifndef MSG_SEPARATOR
! 	if (strncmp(line, "From article ",13) && !strncmp(line, "From ", 5) &&
  	    !sscanf(line+5, "%*s %*s %*s %*d %*d:%*d"))
  #else /* MSG_SEPARATOR */
  	if (!strncmp(line, MSG_SEPARATOR, len))



More information about the Comp.sources.bugs mailing list