INN commit: branches/2.5 (doc/pod/tinyleaf.pod innd/tinyleaf.c)

INN Commit rra at isc.org
Sun Nov 15 09:28:20 UTC 2009


    Date: Sunday, November 15, 2009 @ 01:28:19
  Author: iulius
Revision: 8794

tinyleaf should use 201 and not 200 as initial greeting.
Using POST is not possible.

Modified:
  branches/2.5/doc/pod/tinyleaf.pod
  branches/2.5/innd/tinyleaf.c

----------------------+
 doc/pod/tinyleaf.pod |   14 +++++++-------
 innd/tinyleaf.c      |    4 ++--
 2 files changed, 9 insertions(+), 9 deletions(-)

Modified: doc/pod/tinyleaf.pod
===================================================================
--- doc/pod/tinyleaf.pod	2009-11-15 09:28:11 UTC (rev 8793)
+++ doc/pod/tinyleaf.pod	2009-11-15 09:28:19 UTC (rev 8794)
@@ -4,17 +4,17 @@
 
 =head1 SYNOPSIS
 
-tinyleaf I<spool> [I<processor>]
+B<tinyleaf> I<spool> [I<processor>]
 
 =head1 DESCRIPTION
 
 B<tinyleaf> is intended to be the simplest possible transit news server
 that still does something useful.  It must be run under inetd(8) or some
-equivalent, and only implements three commands (IHAVE, HELP, and QUIT).
+equivalent, and only implements three commands (HELP, IHAVE, and QUIT).
 When it receives an article, it saves it into the directory I<spool> and,
 if I<processor> is given, passes information about the article to
 I<processor> via a pipe.  The file name of the article will be the MD5
-hash of its message ID, and if a file by that name already exists,
+hash of its message-ID, and if a file by that name already exists,
 B<tinyleaf> will refuse the article, reporting it as a duplicate.
 
 If I<processor> is given, it should specify the path to a program.  That
@@ -22,9 +22,9 @@
 directory will be I<spool>.  For each article received by B<tinyleaf>, a
 single line will be sent to standard input of I<processor>.  That line
 will consist of the file name of the received article (relative to
-I<spool>), a single space, and the message ID of the received article.
-Note that the message ID will be taken from the argument to the IHAVE
-command and may not match the Message-ID header in the article.  When
+I<spool>), a single space, and the message-ID of the received article.
+Note that the message-ID will be taken from the argument to the IHAVE
+command and may not match the Message-ID: header in the article.  When
 B<tinyleaf> shuts down, standard input to I<processor> will be closed.
 
 B<tinyleaf> does no syntax verification of received articles whatsoever;
@@ -81,7 +81,7 @@
 
 The timeout and maximum message size should really be configurable.
 B<tinyleaf> should also probably not just respond 500 to every command
-other than IHAVE, HELP, and QUIT; there are more useful (and more
+other than HELP, IHAVE, and QUIT; there are more useful (and more
 expected) error codes that could be returned.
 
 An option to scan the spool directory for any left-over files and pass

Modified: innd/tinyleaf.c
===================================================================
--- innd/tinyleaf.c	2009-11-15 09:28:11 UTC (rev 8793)
+++ innd/tinyleaf.c	2009-11-15 09:28:19 UTC (rev 8794)
@@ -249,10 +249,10 @@
     }
 
     /* Go into the main input loop.  The only commands we support, for now,
-       are IHAVE and QUIT. */
+       are HELP, IHAVE and QUIT. */
     notice("starting");
     state.nntp = nntp_new(STDIN_FILENO, STDOUT_FILENO, 1024 * 1024, 10 * 60);
-    nntp_respond(state.nntp, NNTP_OK_BANNER_POST, "tinyfeed ready");
+    nntp_respond(state.nntp, NNTP_OK_BANNER_NOPOST, "tinyfeed ready");
     command = cvector_new();
     while (1) {
         status = nntp_read_command(state.nntp, command);




More information about the inn-committers mailing list