Article View: news.software.nntp
Article #76033Re: Approving articles with nnrpd filters
From: Jeffrey M. Vinocur
Date: Fri, 20 Apr 2007 01:00
Date: Fri, 20 Apr 2007 01:00
44 lines
2911 bytes
2911 bytes
In article <f08f5n$8f8$1@guepard.ecp.fr>, Iulius <iulius@nom-de-mon-site.com.invalid> wrote: > >1/ Is it possible to approve articles without sending a mail to the >moderator, using filter_nnrpd.pl? It doesn't look like it -- long before the perl filter code is called, a flag is set to indicate that the article needs to be sent to the moderator, and there's no way currently available to unset that flag from within the filter code. (Of course, we could patch the code -- I'm looking at the use of modgroup in nnrpd/post.c.) >2/ Another issue is the posting. It would have been great if that code >without the last two lines had worked. But it is not the case since >INN rejects the article (reason: Unapproved article). >That is why I use a post_announce function which uses rnews to post >the article. It is quite a pain (especially to write headers). >I did not manage to make inews work, but as long as rnews works, it is fine :) Now wait, is post_announce something you wrote that posts a whole new article from scratch? If so, no wonder you're having it show up in two places -- you've made two articles! This is a kinda circuitous approach, but I suppose the way to make it work is to have your filter code drop the original copy of the article. In other words, if your post_announce works, have your filter return DROP so that the original copy is not emailed. I should mention that I really don't like this whole approach. I think it has the potential to end up silently eating articles (if there's something wrong that rnews finds out but has no way to communicate it back through all of the convolutions). Is there really no way that you could just give the relevant users "access: A" permission and have their newsreaders automatically add the Approved header when needed? -- Jeffrey M. Vinocur jeff@litech.org
Technical Details
Message-ID:
<f093am$l0s$1@puck.litech.org>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.litech.org!not-for-mailReferences:
<f08f5n$8f8$1@guepard.ecp.fr>Show Full Headers
Complete Article Headers
Message-ID: <f093am$l0s$1@puck.litech.org> Subject: Re: Approving articles with nnrpd filters Date: Fri, 20 Apr 2007 01:00:06 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <f08f5n$8f8$1@guepard.ecp.fr> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 44 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1177030806 21532 66.218.0.75 (20 Apr 2007 01:00:06 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Fri, 20 Apr 2007 01:00:06 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)