Article View: news.software.nntp
Article #67964How to cancel a moderatd message INN 2.3.4
From: pbs
Date: Mon, 09 Feb 2004 04:34
Date: Mon, 09 Feb 2004 04:34
34 lines
2685 bytes
2685 bytes
I have set up which allows me to moderated messages to a local group
called ylg.test using INN 2.3.4 on a Linux (RH9) OS.
After a moderator has OKed the posting it is sent to a filter
via an alias in /etc/sendmail which
1) strips off the headers added by the re-emialing
2) Strips out any header lines with "^X-"
3) Calls $PATHBIN/mailpost -a moderator ylg.test
For standard postings it works as expected.
BUT when a user tries to cancel the message.
a) It goes to the moderator email.
b) same steps as before.
c) then mailpost puts an "X-" in front of the "Control: cancel" field.
d) The message gets posted as a new message instead of cancelling the
original posting.
So I had a quick look at the $PATHBIN/mailnews perl script and added
Control: field handling.
Now the error message reads:
Subject: mailpost failure (lmrln.test): inews failed: Article was
posted by "test123@my.domiain" and you are "mail@my.domain".
(Article not posted.)
Sigh! As Denis Healey said "When you are in a hole stop digging"
1) Is there a better way/script to do moderated cancels?
2) If not is there a variable in mailpost I can change to fool inews?
If so what is it?
3) Or does anyone know of any internet documentation on this problem?
Technical Details
Message-ID:
<c072k1$vi0$1@squay.lomarline.freeserve.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!news02.tsnz.net!news.iconz.co.nz!lomarline.freeserve.co.uk!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <c072k1$vi0$1@squay.lomarline.freeserve.co.uk> Subject: How to cancel a moderatd message INN 2.3.4 Date: Mon, 09 Feb 2004 17:34:08 +1300 From: pbs <pnews@lomarline.freeserve.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!news02.tsnz.net!news.iconz.co.nz!lomarline.freeserve.co.uk!not-for-mail Newsgroups: news.software.nntp Organization: InterNetNews site lomarline.freeserve.co.uk Lines: 34 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en, en-us X-Original-NNTP-Posting-Host: ip-210-185-3-240.internet.co.nz X-Original-Trace: 9 Feb 2004 17:36:07 +1300, ip-210-185-3-240.internet.co.nz NNTP-Posting-Host: 210.48.22.5 X-Complaints-To: abuse@tsnz.net X-Trace: news02.tsnz.net 1076301613 210.48.22.5 (Mon, NNTP-Posting-Date: Mon, 09 Feb 2004 17:40:13 NZDT