Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!crackers!cpoint!frog!rmkhome!rmk From: rmk@rmkhome.UUCP (Rick Kelly) Newsgroups: comp.os.coherent Subject: Coherent Cnews bug fix Summary: Fixes bad date headers Keywords: news cnews rn Message-ID: <9106221729.22@rmkhome.UUCP> Date: 23 Jun 91 06:29:00 GMT Reply-To: rmk@rmkhome.UUCP (Rick Kelly) Organization: The Man With Ten Cats Lines: 36 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