innxmit -H (header feed) patch

Patrick Schreurs patricks at support.nl
Sun Feb 15 17:20:22 UTC 2004


Hi all,

Here is a small patch to get innxmit -H to work.
innxmit -H sends a header only feed, normally used
for diablo servers.

However diablo expects each article to end with
an empy line. Currently innxmit doesnot send this
empty line and diablo doesn't recognize the
header feed. This patch takes care of that.

Greetings,

Kind Regards,

Patrick Schreurs
Support.Net / News-Service.com

--- innxmit.c.orig      Sun Feb 15 18:02:36 2004
+++ innxmit.c   Sun Feb 15 17:11:09 2004
@@ -597,8 +597,8 @@
            vec[2].iov_base = (char *) art->data + len;
            vec[2].iov_len = art->len - len;
        } else {
-           vec[2].iov_base = (char *) ".\r\n";
-           vec[2].iov_len = 3;
+           vec[2].iov_base = (char *) "\r\n.\r\n";
+           vec[2].iov_len = 5;
        }
        if (xwritev(ToServer, vec, 3) < 0)
            return false;



More information about the inn-workers mailing list