[comp.os.coherent] Coherent Cnews bug fix

rmk@rmkhome.UUCP (Rick Kelly) (06/23/91)

This is a fix for date headers in Coherent Cnews.

The latest Cnews will drop articles that do not have valid RFC date
headers.  Coherent Cnews has date header problems, and this is a fix.

Save the script below as rfcdate, and put it in /bin.

Do:

chmod +x rfcdate
chown bin rfcdate
chgrp bin rfcdate

------------------------------- cut here ------------------------------
#!/bin/sh
# Produces RFC822/1036 compliant date for Cnews
# Rick Kelly	6/20/91
set `date -u`
defdate="$3 $2 $5 $4"
echo $defdate | sed -e s/'199'/'9'/ -e s2/':'..//
------------------------------- cut here ------------------------------

cd /usr/lib/newsbin/inject

edit anne.jones and look for the line that says:

date="`date -u`"		# Coherent

Change this line to:

date="`rfcdate`"		# Coherent


You are now ready to start posting again.

Rick Kelly	rmk@rmkhome.UUCP	frog!rmkhome!rmk	rmk@frog.UUCP