chip@tct.uucp (Chip Salzenberg) (02/06/90)
Here is an updated version of the C News patch that generates message
ids consisting of the date and time in hex along with the site name.
*** ../sh-orig/anne.jones Fri Jan 26 09:22:27 1990
--- anne.jones Mon Feb 5 13:52:50 1990
***************
*** 106,109 ****
--- 106,114 ----
esac
+ # figure the current time and pid in hex, for message id
+ now="`getdate now`"
+ mdate="`echo $now 16op | dc`"
+ mpid="`echo $$ 16op | dc`"
+
# give defaults and headers to awk
cat $* |
***************
*** 118,120 ****
deffrom="$FROM" deforg="$deforg" \
defdate="` set $date; echo $1, $3 $2 \` echo $6 | sed 's/^..//' \` $4 $5`" \
! defmsgid="`set $date; echo \<$6$2$3.\` echo $4 | tr -d : \`.$$@$host\>`" -
--- 123,125 ----
deffrom="$FROM" deforg="$deforg" \
defdate="` set $date; echo $1, $3 $2 \` echo $6 | sed 's/^..//' \` $4 $5`" \
! defmsgid="<$mdate.$mpid@$host>" -
--
Chip Salzenberg at ComDev/TCT <chip%tct@ateng.com>, <uunet!ateng!tct!chip>
"The Usenet, in a very real sense, does not exist."