Article View: news.software.nntp
Article #5155Followups without References (a solution)
From: Thomas 'Mike' Michlmayr
Date: Thu, 22 Feb 1996 00:00
Date: Thu, 22 Feb 1996 00:00
73 lines
3056 bytes
3056 bytes
Hi!
Below is a patch that makes innd refuse any followup that does not have a
References header (but does not (yet) for a valid Header). It is written for
unoff3, but it should work with inn1.4sec2 just as well.
Use this patch at your own risk!!
===== inn-strict-followups.patch =====================================
*** config/config.dist.orig Thu Feb 22 17:23:02 1996
--- config/config.dist Thu Feb 22 17:19:18 1996
***************
*** 376,381 ****
--- 376,387 ----
## Five is number of .signature lines + 1.
#### =()<LINECOUNT_FUZZ @<LINECOUNT_FUZZ>@>()=
LINECOUNT_FUZZ 5
+ ## Check if there is a Reference header in followups. If not, the article
+ ## dropped. This is a bit dangerous as many sites refuse to abide to RFC1036.
+ ## If many large sites will use this option, the non-abiding sites should
+ ## go away soon. Pick DO or DONT.
+ #### =()<CHECK_REFERENCES @<CHECK_REFERENCES>@>()=
+ CHECK_REFERENCES DO
## Have innd throttle itself after this many I/O errors.
#### =()<IO_ERROR_COUNT @<IO_ERROR_COUNT>@>()=
IO_ERROR_COUNT 50
*** include/configdata.h.orig Thu Feb 22 17:22:53 1996
--- include/configdata.h Thu Feb 22 17:19:24 1996
***************
*** 221,226 ****
--- 221,229 ----
/* If checking, the error must be within LINECOUNT_FUZZ lines. */
/* =()<#define LINECOUNT_FUZZ @<LINECOUNT_FUZZ>@>()= */
#define LINECOUNT_FUZZ 5
+ /* check references on followups */
+ /* =()<#define @<CHECK_REFERENCES>@_CHECK_REFERENCES>()= */
+ #define DO_CHECK_REFERENCES
/* Have innd throttle itself after this many I/O errors. */
/* =()<#define IO_ERROR_COUNT @<IO_ERROR_COUNT>@>()= */
#define IO_ERROR_COUNT 50
*** innd/art.c.orig Thu Feb 22 17:22:41 1996
--- innd/art.c Thu Feb 22 17:19:29 1996
***************
*** 1013,1018 ****
--- 1013,1032 ----
(void)strcpy(in, p);
}
}
+
+ #if defined(DO_CHECK_REFERENCES)
+ /* If this is a followup, check if there is a reference header */
+ in = HDR(_subject);
+ if (*in == 'R' && EQn(in, "Re: ", 4)) {
+ p = HDR(_references);
+ if (*p == '\0') {
+ (void)sprintf(buff,
+ "Followup without \"References\" header");
+ return buff;
+ }
+ }
+ #endif /* defined(DO_CHECK_REFERENCES) */
+
return NULL;
}
======================================================================
--
Thomas 'Mike' Michlmayr can not assert the truth of all statements in
this article and still be consistent. <mike@cosy.sbg.ac.at>
Technical Details
Message-ID:
<4gi628$h8p@esel.cosy.sbg.ac.at>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <4gi628$h8p@esel.cosy.sbg.ac.at> Subject: Followups without References (a solution) Date: Thu, 22 Feb 1996 00:00:00 +0000 From: mike@cosy.sbg.ac.at (Thomas 'Mike' Michlmayr) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 140568879 Organization: Usenet Ground Control Newsgroups: news.software.nntp