Path: utzoo!utstat!helios.physics.utoronto.ca!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!usfvax2!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: news.software.b Subject: C News patch: remove unnecessary "Sender" Message-ID: <25CDD0E1.2BD2@tct.uucp> Date: 5 Feb 90 19:15:44 GMT Organization: ComDev/TCT, Sarasota, FL Lines: 27 By default, the C News "inews" script only inserts a "Sender" header line if the "From" line already exists. However, it makes no check as to the contents of the "From" line. If the "From" line is already equal to what C News would have inserted, then the "Sender" line is redundant. This patch removes the redundant "Sender" in this case. *** ../sh-orig/defhdrs.awk Tue Jan 23 10:39:34 1990 --- defhdrs.awk Mon Feb 5 14:04:12 1990 *************** *** 51,56 **** if (hdrval[fromname] == "") hdrval[fromname] = fromname " " deffrom ! else if (hdrval[sendername] == "") ! hdrval[sendername] = sendername " " deffrom # replace user's headers (if any) [this is not currently done] --- 51,57 ---- if (hdrval[fromname] == "") hdrval[fromname] = fromname " " deffrom ! if (hdrval[sendername] == "" && \ ! hdrval[fromname] != fromname " " deffrom) ! hdrval[sendername] = sendername " " deffrom # replace user's headers (if any) [this is not currently done] -- Chip Salzenberg at ComDev/TCT , "The Usenet, in a very real sense, does not exist."