Use of "nnrpd -i"

Julien ÉLIE julien at
Sat Oct 17 21:04:48 UTC 2009


-i initial

    Specify an initial command to nnrpd.  When used, initial is taken
    as if it were the first command received by nnrpd.

Revision 3708 (in year 2000):

@@ -1196,6 +1197,8 @@
  (*cp->Function)(ac, av);
+   if (PushedBack)
+     break;

  Reply("%s\r\n", NNTP_GOODBYE_ACK);

which makes "nnrpd -i" stop the connection after the initial command.
Is it how "nnrpd -i" is supposed to work?
Does someone use it here?

Especially when I see the comment of that commit:
  - make '-i' work (this is useful for debugging thru stdin)

Well, I just wanted to be sure that this is how the option
is intended to be used...
If so, we could say it in the documentation (exit after the

% nnrpd -i "STAT"
200 InterNetNews NNRP server INN 2.6.0 (20091009 prerelease) ready (posting ok)
412 Not in a newsgroup
[Connection closed.]

Julien ÉLIE

« Se taire, c'est pareil dans toutes les langues. » (Philippe Geluck) 

More information about the inn-workers mailing list