🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18636

Re: signcontrol and inews (INN 1.5.1)

#18636
From: Andrew Gierth
Date: Mon, 23 Jun 1997 00:00
45 lines
2329 bytes
>>>>> "Michael" == Michael Grubb <mg@duke.edu> writes:

 Michael> I am experimenting with PGP verification of newgroups and
 Michael> rmgroups for a local hierarchy.

 Michael> Using signcontrol and inews from the INN 1.5.1 distribution,
 Michael> I create the control message and attempt to post it:

 Michael> 	signcontrol </tmp/cmsg >/tmp/cmsg.pgp
 Michael> 	inews -h </tmp/cmsg.pgp

 Michael> The article is posted fine but the PGP verification fails
 Michael> because INN's inews always changes the date, and signcontrol
 Michael> (intelligently, I think) wants to use the Date header for
 Michael> the PGP signature.  I can fix this by changing signcontrol
 Michael> not to use the Date header (removing 'Date' from
 Michael> @signheaders), but I'd like to know if anyone else has a
 Michael> different approach.

inews is a PITA and should be avoided at all costs for anything more
complex than auto-posting informational articles.

Use rnews or feed the article in via NNTP.

Just look at what inews actually does:

  - munges already perfectly good headers
  - adds headers that usually get stripped again later (Sender)
  - tries to verify things like cancels, wrongly
  - barfs on stderr for no good reason (e.g. when mailing to moderator)

And after all this, all it actually does is connect to nnrpd and do a
POST command for the article - and nnrpd has most of the same logic in
it.

You might almost be better off with

$ perl -MNews::NNTPClient 'my $s=new News::NNTPClient("localhost");
> $s->mode_reader(); $s->post(<STDIN>);' <article

-- 
Andrew.

Technical Details
Message-ID: <87lo41ginr.fsf@erlenstar.demon.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.mbox.zip!not-for-mail
References: <vw14tapqeps.fsf@cambot.oit.duke.edu>

Show Full Headers
Complete Article Headers
Message-ID: <87lo41ginr.fsf@erlenstar.demon.co.uk>
Subject: Re: signcontrol and inews (INN 1.5.1)
Date: Mon, 23 Jun 1997 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <vw14tapqeps.fsf@cambot.oit.duke.edu>
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: 252076875
X-NNTP-Posting-Host: erlenstar.demon.co.uk [194.222.144.22]
X-Mayan-Date: Long count = 12.19.4.4.18; tzolkin = 10 Etznab; haab = 16 Zotz
Organization: disorganised
X-Attribution: AG
Newsgroups: news.software.nntp