Access control based on user name
rra at stanford.edu
Wed Feb 2 08:44:12 UTC 2000
Ludovic Kuty <kuty at run.montefiore.ulg.ac.be> writes:
> But rnews must be given a well formatted news article with all needed
> header fields, and I don't know how to generate the Message-ID because
> it has to be unique.
> Any suggestion ?
$messageid = '<rs-' . time . ".$$\@$HOST>";
where $HOST is set to the local hostname works pretty well. In shell,
messageid=`date +%Y%m%d%H%M%S | sed 's/^/<rs-/'`
is the equivalent. The leading "rs-" is just there out of paranoia in
case something else on your system is using the same message ID generation
Russ Allbery (rra at stanford.edu) <URL:http://www.eyrie.org/~eagle/>
More information about the inn-workers