🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #82707

Re: [slrn] How do I get slrn to check PGP signatures ?

#82707
From: Walter Dnes
Date: Fri, 10 Aug 2001 01:57
49 lines
2704 bytes
On Mon, 6 Aug 2001 02:21:33 +0200, Alexander Wasmuth, <alex@whizzo.wasmuth.org> wrote:
>  * Walter Dnes <waltdnes@waltdnes.org>:
>  
> >   The manual and FAQ and example slrn.rc mention turning the display of
> > PGP signatures on and off.  There is no mention of actually checking a
> > PGP signature.  Does somebody have any pointers ?  If it involves slang
> > macros, I'll need extensive hand-holding.
>  
>  Take a look at this page:
>  
>      http://digilander.iol.it/ebassi/slrn/index.html#macros


  I looked it over and distilled it down to...

define verify_pgp ()
{
 pipe_article ("gpg --verify -;exit 1");
}
definekey ("verify_pgp", "v", "article");

  I find that I have to deliberately force an error status (non-zero
exit) and a bash error message in order to see the output...

gpg: Signature made Sun 05 Aug 2001 07:05:02 PM EDT using DSA key ID 3DD0EEDC
gpg: Good signature from "Walter Dnes <waltdnes@waltdnes.org>"
Command gpg --verify -;exit 1 returned exit status 1.  Press RETURN.

  If I use the nicer looking...

define verify_pgp ()
{
 pipe_article ("gpg --verify -");
 read_mini_no_echo("Press ENTER to continue", "", "");
}
definekey ("verify_pgp", "v", "article");

...then the screen is refreshed immediately after gpg confirms the
signature, and I only see the "Press ENTER to continue" prompt,
which defeats the whole point of outputting gpg status.  Since the
pipe_article command invokes a *NON* interactive shell, bash is not
happy about me using the "read" command to prompt to continue.  Any
ideas from the s-lang gurus out there ?

-- 
Walter Dnes <waltdnes@waltdnes.org>
Procmail-based spam filters http://www.waltdnes.org/email
Read about the New Apartheid in Canada http://www.waltdnes.org/apartheid2001
Technical Details
Message-ID: <9kvf2g$1fl2$1@news.tht.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!not-for-mail
References: <9kklf9$2cqf$1@news.tht.net> <slrn9mrooa.cq.alex@whizzo.wasmuth.org>

Show Full Headers
Complete Article Headers
Message-ID: <9kvf2g$1fl2$1@news.tht.net>
Subject: Re: [slrn] How do I get slrn to check PGP signatures ?
Date: Fri, 10 Aug 2001 01:57:36 +0000
From: waltdnes@waltdnes.org (Walter Dnes)
References: <9kklf9$2cqf$1@news.tht.net> <slrn9mrooa.cq.alex@whizzo.wasmuth.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!not-for-mail
Newsgroups: news.software.readers
Organization: Hub.Org Networking Services (http://www.hub.org)
Lines: 48
Reply-To: waltdnes@waltdnes.org
X-Trace: news.tht.net 997408656 48802 216.126.72.2 (10 Aug 2001 01:57:36 GMT)
X-Complaints-To: scrappy@hub.org
User-Agent: slrn/0.9.7.1 (Linux)