K 10
svn:author
V 6
iulius
K 8
svn:date
V 27
2011-07-12T09:57:44.745149Z
K 7
svn:log
V 1324
controlchan:  impose a date cutoff, block the replay of old control articles

controlchan now uses convdate to parse dates.
Otherwise, with the new Injection-Date: header field, old control articles
could be maliciously reinjected into Usenet, and replayed.

The Injection-Date: header of old control articles is not always signed...

controlchan now imposes a date cutoff.


According to RFC 5537, a relaying agent processes an article as follows:

  2.  It MUST examine the Injection-Date header field or, if absent,
      the Date header field, and reject the article if that date is
      more than 24 hours into the future.  It MAY reject articles with
      dates in the future with a smaller margin than 24 hours.

That is to say that the Date: header field can be set to anything when
an Injection-Date header field exists.

Add a "-c" flag to controlchan to disable the cutoff check.
On a date parsing failure, controlchan rejects the message (which will be
actually process only with the "-c" flag disactivating the cutoff check).

Also add a "-h" flag to print basic usage information.

Convert controlchan man page into POD:
* mention control.ctl.local;
* document the "-c" and "-h" flags;
* document the need for the Perl modules Encode and MIME::Parser;
* add an example of how to manually invoke controlchan.

END
