Is newnews working on INN 2.3.0 ?
Katsuhiro Kondou
kondou at nec.co.jp
Tue Jun 27 23:38:42 UTC 2000
In article <20000626130227.A12507 at becile.teaser.fr>,
Laurent Frigault <lfrigault at teaser.fr> wrote;
} I've been running INN 2.3.0 BETA for a few days now and I can't use the
} NEWNEWS command:
I've just fixed, and attached should work. Thanks for
your reporting.
--
Katsuhiro Kondou
--- nnrpd/article.c.orig Thu Jun 22 10:20:26 2000
+++ nnrpd/article.c Wed Jun 28 08:33:20 2000
@@ -44,7 +44,6 @@
STATIC char ARTnoartingroup[] = NNTP_NOARTINGRP;
STATIC char ARTnocurrart[] = NNTP_NOCURRART;
STATIC ARTHANDLE *ARThandle = NULL;
-STATIC int ARTfirstfullfield = 0;
STATIC int ARTxreffield = 0;
STATIC SENDDATA SENDbody = {
STbody, NNTP_BODY_FOLLOWS_VAL, "body"
@@ -243,8 +242,6 @@
if ((p = strchr(buff, ':')) != NULL) {
*p++ = '\0';
fp->NeedsHeader = EQ(p, "full");
- if (ARTfirstfullfield == 0)
- ARTfirstfullfield = fp - ARTfields + 1;
}
else
fp->NeedsHeader = FALSE;
@@ -843,18 +840,17 @@
fp = &ARTfields[ARTxreffield];
}
- if (fp->NeedsHeader) /* we're going to need an exact match */
- field = ARTfirstfullfield;
-
/* Skip leading headers. */
- for (; field-- >= 0 && *p; p++)
+ for (field; field >= 0 && *p; p++)
if ((p = strchr(p, '\t')) == NULL)
return NULL;
+ else
+ field--;
if (*p == '\0')
return NULL;
if (fp->NeedsHeader) { /* find an exact match */
- if (!EQn(fp->Header, p, fp->Length))
+ if (!caseEQn(fp->Header, p, fp->Length))
return NULL;
p += fp->Length + 2;
/* skip spaces */
More information about the inn-workers
mailing list