Access control based on user name

Russ Allbery rra at
Wed Feb 2 08:44:12 UTC 2000

Ludovic Kuty <kuty at> 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:

        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         <URL:>

More information about the inn-workers mailing list