Access control based on user name
Russ Allbery
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 ?
In Perl:
$messageid = '<rs-' . time . ".$$\@$HOST>";
where $HOST is set to the local hostname works pretty well. In shell,
something like:
hostname=`hostname`
messageid=`date +%Y%m%d%H%M%S | sed 's/^/<rs-/'`
messageid="${messageid}.${$}@${hostname}>"
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
algorithm.
--
Russ Allbery (rra at stanford.edu) <URL:http://www.eyrie.org/~eagle/>
More information about the inn-workers
mailing list