Article View: news.software.nntp
Article #16521Re: Duplicate articles with INN (bug?)
From: Per Hedeland
Date: Mon, 31 Mar 1997 00:00
Date: Mon, 31 Mar 1997 00:00
55 lines
2768 bytes
2768 bytes
[ Cc'ed to inn-bugs@isc.org ]
In article <5hp2l9$jqa$1@hammer.msfc.nasa.gov> news@news.msfc.nasa.gov
(Unknown News Administrator) writes:
>gdonl@tsc.tdk.com (Don Lewis) writes:
>
>>INN 1.5, FreeBSD 2.1.6, w/o MMAP, with a bunch of feeds. I didn't see
>>any duplicate article files though. It appears that the duplicate history
>>entries are added when innd rejects articles with "437 Duplicate article"
>>responses.
>
>This does indeed seem to be the problem if REMEMBER_TRASH is set to DO.
Agrees with my observation - I have REMEMBER_TRASH set to DONT, and *no*
duplicates in history.
>Below is a patch that reflects all of the changes I have made to my working
>copy of art.c since INN-1.5.1 came out.
...
> 3. Don't write a history record for articles rejected because they
> are duplicates.
I think the bug is actually in this change in art.c/ARTpost() from
1.4unoff4 to 1.5:
if (error != NULL) {
(void)sprintf(buff, "%d %s", NNTP_REJECTIT_VAL, error);
ARTlog(&Data, ART_REJECT, buff);
+ #if defined(DO_REMEMBER_TRASH)
+ if (Mode == OMrunning && !HISwrite(&Data, ""))
+ syslog(L_ERROR, "%s cant write history %s %m",
+ LogName, Data.MessageID);
+ #endif /* defined(DO_REMEMBER_TRASH) */
ARTreject(buff, article);
return buff;
}
- errors detected previous to this point are of the kind that you
*never* want to save the Message-ID, regardless of the setting of
REMEMBER_TRASH - besides duplicates, these are malformed articles (might
have been mangled in transit, and you could get a good version later
from another feed) or Path:-based shunning (the article may have passed
through the shunned site rather than originated there, and you could
similarly get an "untainted" version later).
I.e. I believe the return from the function here, before the "normal"
DO_REMEMBER_TRASH sections, is quite correct and intentional, and that
the added section should just be removed again.
--Per Hedeland
per@erix.ericsson.se
Technical Details
Message-ID:
<5hph2e$5sr$1@news.du.etx.ericsson.se>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-mailReferences:
<5heo2g$eol$1@sun579.rz.ruhr-uni-bochum.de> <5hh1f6$64k$1@sun579.rz.ruhr-uni-bochum.de> <5hhpre$60$1@news.gv.tsc.tdk.com> <5hp2l9$jqa$1@hammer.msfc.nasa.gov>Show Full Headers
Complete Article Headers
Message-ID: <5hph2e$5sr$1@news.du.etx.ericsson.se> Subject: Re: Duplicate articles with INN (bug?) Date: Mon, 31 Mar 1997 00:00:00 +0000 From: per@erix.ericsson.se (Per Hedeland) References: <5heo2g$eol$1@sun579.rz.ruhr-uni-bochum.de> <5hh1f6$64k$1@sun579.rz.ruhr-uni-bochum.de> <5hhpre$60$1@news.gv.tsc.tdk.com> <5hp2l9$jqa$1@hammer.msfc.nasa.gov> 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: 229742726 Organization: Ericsson Telecom, Stockholm, Sweden Newsgroups: news.software.nntp NNTP-Posting-User: per