chip@tct.uucp (Chip Salzenberg) (02/06/90)
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 <chip%tct@ateng.com>, <uunet!ateng!tct!chip>
"The Usenet, in a very real sense, does not exist."