Article View: news.software.nntp
Article #82624Re: New draft for LIST additions (-02)
From: Julien ÉLIE
Date: Wed, 20 Jan 2010 22:26
Date: Wed, 20 Jan 2010 22:26
71 lines
4616 bytes
4616 bytes
Hi Michael,
> With 2.4.5 and wanttrash set to true (see my reference) I did get those
> errors with an empty active, in 2.5.2 I won't?
Oh, I overlooked something.
Well, I think it is annoying to receive "Unwanted newsgroup" when we explicitly
use wanttrash.
Fixing it is quite easy. Just a line change in fact (+ doc). See above.
However, maybe people rely on that line to see the names of the newsgroups
they accept without carrying them... (stats, creation of them, etc.)
I don't know what is the best thing to do... Hm, maybe a "logtrash" inn.conf
parameter? If set to true (the default), it would mean to log that line
when wanttrash is also true.
Any comments about that?
Any other ideas?
Index: doc/pod/innd.pod
===================================================================
--- doc/pod/innd.pod (révision 8880)
+++ doc/pod/innd.pod (copie de travail)
@@ -447,10 +447,6 @@
line.) This log message is just informational, to give an idea of how
widespread such articles are; B<innd> does not reject such articles.
-Note that when I<wanttrash> is set to true in F<inn.conf> and an article
-is received that isn't posted to any valid newsgroups, it will be accepted
-and logged with two lines, a C<j> line and a minus sign line.
-
B<innd> also makes extensive reports through syslog(3). The first word of
the log message will be the name of the site if the entry is site-specific
(such as a "connected" message). The first word will be C<SERVER> if the
Index: innd/art.c
===================================================================
--- innd/art.c (révision 8909)
+++ innd/art.c (copie de travail)
@@ -2373,7 +2373,7 @@
/* If !Accepted, then none of the article's newgroups exist in our
* active file. Proper action is to drop the article on the floor.
- * If ngp == GroupPointers, then all the new articles newsgroups are
+ * If ngptr == GroupPointers, then all the new articles newsgroups are
* "j" entries in the active file. In that case, we have to file it
* under junk so that downstream feeds can get it. */
if (!Accepted || ngptr == GroupPointers) {
@@ -2390,8 +2390,11 @@
MaxLength(data->Newsgroups.List[0],
data->Newsgroups.List[0]));
}
- ARTlog(data, ART_REJECT, cp->Error);
+
if (!innconf->wanttrash) {
+ /* Log the previous reject only when wanttrash is false. */
+ ARTlog(data, ART_REJECT, cp->Error);
+
if (innconf->remembertrash && (Mode == OMrunning) &&
!NoHistoryUpdate && !InndHisRemember(HDR(HDR__MESSAGE_ID),
data->Posted))
--
Julien ÉLIE
« On voit qu'un ami est sûr quand notre situation ne l'est pas. » (Cicéron)
Technical Details
Message-ID:
<hj7vuu$nc5$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-29-164.w83-112.abo.wanadoo.fr!not-for-mailReferences:
<hic74m$vi8$1@news.trigofacile.com> <hicf9f$ntj$1@snarked.org> <hiclo9$dd4$1@news.trigofacile.com> <hidmvp$vh1$1@snarked.org> <hitipd$rtb$1@news.trigofacile.com> <hitjqg$gje$1@optima5.xanadu-bbs.net> <hiunjs$3cl$1@news.trigofacile.com> <hj0261$66r$1@optima5.xanadu-bbs.net> <hj7qtp$h90$1@news.trigofacile.com> <hj7sgo$1qpp$2@de-l.enfer-du-nord.net> <hj7tg3$jro$1@news.trigofacile.com> <hj7u2t$1qpp$3@de-l.enfer-du-nord.net>Show Full Headers
Complete Article Headers
Message-ID: <hj7vuu$nc5$1@news.trigofacile.com> Subject: Re: New draft for LIST additions (-02) Date: Wed, 20 Jan 2010 23:26:42 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <hic74m$vi8$1@news.trigofacile.com> <hicf9f$ntj$1@snarked.org> <hiclo9$dd4$1@news.trigofacile.com> <hidmvp$vh1$1@snarked.org> <hitipd$rtb$1@news.trigofacile.com> <hitjqg$gje$1@optima5.xanadu-bbs.net> <hiunjs$3cl$1@news.trigofacile.com> <hj0261$66r$1@optima5.xanadu-bbs.net> <hj7qtp$h90$1@news.trigofacile.com> <hj7sgo$1qpp$2@de-l.enfer-du-nord.net> <hj7tg3$jro$1@news.trigofacile.com> <hj7u2t$1qpp$3@de-l.enfer-du-nord.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!weretis.net!feeder2.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-29-164.w83-112.abo.wanadoo.fr!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 71 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-15"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Date: Wed, 20 Jan 2010 22:26:38 +0000 (UTC) Injection-Info: news.trigofacile.com; posting-host="aaubervilliers-151-1-29-164.w83-112.abo.wanadoo.fr:83.112.20.164"; logging-data="23941"; mail-complaints-to="abuse@trigofacile.com" In-Reply-To: <hj7u2t$1qpp$3@de-l.enfer-du-nord.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6002.18005 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005