🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #83198

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

#83198
From: Walter Dnes
Date: Sun, 19 Aug 2001 19:30
40 lines
2637 bytes
On 10 Aug 2001 18:45:37 GMT, Jurriaan (note: this is a working address!), <no_spam_here@rivierenland.xs4all.nl> wrote:

>  Did you try piping the output to some file, then reading that
>  file as a single string and using the slrn_popup() function
>  (new in 0.9.7.1pl2 and newer)?

   I normally use RPM's, and I can (./configure;make;make install) off
of a tarball, even throw in an optional parameter or two if the INSTALL
indicates it applies to my system.  However, I don't know how to apply
diffs.  So that'll have to wait until a new release.  Or does anyone
have a quick tutorial for doing diff-patches ?  Anyhow here's my code
so far, minus the display code (wait for next version).

define verify_pgp ()
{
 variable gpg_diagnostics, gpg_file;
 pipe_article("gpg --verify - 2> $HOME/.SLRN_PGP_VERIFY");
 gpg_file = fopen(strcat(getenv("HOME"), "/.SLRN_PGP_VERIFY"), "r");
 gpg_diagnostics = strjoin(fgetslines (gpg_file), "");
 fclose(gpg_file);
%
% Display code would go here
%
}
definekey ("verify_pgp", "v", "article");

  A couple of notes
  1) gpg outputs its comments to stderr, not stdout.  I was going nuts
     trying to figure out why ordinary redirection wasn't working.  In
     the code above, "2>" redirects stderr to a file.

  2) slrn 0.9.7.1 doesn't seem to expand "~" at the start of a file
     name.  So I had to work around it by prefixing getenv("HOME")
     instead.

-- 
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: <9lp443$j15$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!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.cgocable.net!hub.org!hub.org!not-for-mail
References: <9kklf9$2cqf$1@news.tht.net> <slrn9mrooa.cq.alex@whizzo.wasmuth.org> <9kvf2g$1fl2$1@news.tht.net> <slrn9n8a5r.98u.no_spam_here@middle.of.nowhere>

Show Full Headers
Complete Article Headers
Message-ID: <9lp443$j15$1@news.tht.net>
Subject: Re: [slrn] How do I get slrn to check PGP signatures ?
Date: Sun, 19 Aug 2001 19:30:11 +0000
From: waltdnes@waltdnes.org (Walter Dnes)
References: <9kklf9$2cqf$1@news.tht.net> <slrn9mrooa.cq.alex@whizzo.wasmuth.org> <9kvf2g$1fl2$1@news.tht.net> <slrn9n8a5r.98u.no_spam_here@middle.of.nowhere>
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!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.cgocable.net!hub.org!hub.org!not-for-mail
Newsgroups: news.software.readers
Organization: Hub.Org Networking Services (http://www.hub.org)
Lines: 39
Reply-To: waltdnes@waltdnes.org
X-Trace: news.tht.net 998249411 19493 216.126.72.2 (19 Aug 2001 19:30:11 GMT)
X-Complaints-To: scrappy@hub.org
User-Agent: slrn/0.9.7.1 (Linux)