Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!helios.ee.lbl.gov!nosc!humu!uhccux!lee From: lee@uhccux.uhcc.hawaii.edu (Greg Lee) Newsgroups: comp.sources.bugs Subject: mush fix Message-ID: <2399@uhccux.uhcc.hawaii.edu> Date: 20 Sep 88 01:42:45 GMT Organization: University of Hawaii Lines: 29 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@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))