Thread View: news.software.nntp
3 messages
3 total messages
Started by Michael Grubb
Mon, 23 Jun 1997 00:00
signcontrol and inews (INN 1.5.1)
Author: Michael Grubb
Date: Mon, 23 Jun 1997 00:00
Date: Mon, 23 Jun 1997 00:00
25 lines
1220 bytes
1220 bytes
I am experimenting with PGP verification of newgroups and rmgroups for a
local hierarchy.
Using signcontrol and inews from the INN 1.5.1 distribution, I create
the control message and attempt to post it:
signcontrol </tmp/cmsg >/tmp/cmsg.pgp
inews -h </tmp/cmsg.pgp
The article is posted fine but the PGP verification fails because
INN's inews always changes the date, and signcontrol (intelligently,
I think) wants to use the Date header for the PGP signature. I can
fix this by changing signcontrol not to use the Date header (removing
'Date' from @signheaders), but I'd like to know if anyone else has a
different approach.
Thanks,
-- Mike
--
Michael Grubb <mg@duke.edu> KF4NCU
Re: signcontrol and inews (INN 1.5.1)
Author: Andrew Gierth
Date: Mon, 23 Jun 1997 00:00
Date: Mon, 23 Jun 1997 00:00
45 lines
2329 bytes
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.
Re: signcontrol and inews (INN 1.5.1)
Author: Simon Lyall
Date: Tue, 24 Jun 1997 00:00
Date: Tue, 24 Jun 1997 00:00
49 lines
1852 bytes
1852 bytes
Michael Grubb <mg@duke.edu> wrote: >The article is posted fine but the PGP verification fails because >INN's inews always changes the date, and signcontrol (intelligently, >I think) wants to use the Date header for the PGP signature. I can >fix this by changing signcontrol not to use the Date header (removing >'Date' from @signheaders), but I'd like to know if anyone else has a >different approach. I use the script below instead of inews. You just have to make sure that you are in the hosts.nntp of the server you are aiming at (I think news.uu.net still works, it doesn't say much when I connect to it) --cut-here-- #! /bin/sh ## Post an article via IHAVE. ## args: filename server if test "$2" = "" ; then echo usage: $0 filename server exit 1 fi if test ! -f $1 ; then echo $1: not found exit 1 fi # suck msg-id out of headers, keep the brackets msgid=`sed -e '/^$/,$d' $1 | egrep '^[Mm]essage-[Ii][Dd]: ' | \ sed 's/.*-[Ii][Dd]: //'` echo $msgid ( sleep 5 echo IHAVE $msgid sleep 3 cat $1 sleep 1 echo "." sleep 1 echo QUIT ) | telnet $2 119 --cut-here-- -- Simon Lyall. | Looking for Work | Mail: simon@darkmere.gen.nz "Inside me Im Screaming, Nobody pays any attention." | MT.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads