🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #83359

[slrn] Verifying PGP signatures in v0.9.7.2

#83359
From: Walter Dnes
Date: Wed, 22 Aug 2001 23:42
25 lines
1685 bytes
  Here it is.  Thanks for all the suggestions from the friendly people
here.

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);
 popup_window("GPG diagnostics", gpg_diagnostics);
}
definekey ("verify_pgp", "v", "article");

  Note that gpg outputs its diagnostics to stderr, not stdout.  So I
have to redirect stderr "2>" to $HOME/.SLRN_PGP_VERIFY

  Then it's a matter of opening the file, reading its contents, and
outputting via "popup_window".

-- 
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: <9m1g17$2aff$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!cyclone.bc.net!acadiau.ca!acadiau.ca!hub.org!hub.org!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <9m1g17$2aff$1@news.tht.net>
Subject: [slrn] Verifying PGP signatures in v0.9.7.2
Date: Wed, 22 Aug 2001 23:42:32 +0000
From: Walter Dnes <waltdnes@waltdnes.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!newsfeed.stanford.edu!cyclone.bc.net!acadiau.ca!acadiau.ca!hub.org!hub.org!not-for-mail
Newsgroups: news.software.readers
Organization: Hub.Org Networking Services (http://www.hub.org)
Lines: 24
Reply-To: waltdnes@waltdnes.org
X-Trace: news.tht.net 998523752 76271 216.126.72.2 (22 Aug 2001 23:42:32 GMT)
X-Complaints-To: scrappy@hub.org
User-Agent: slrn/0.9.7.2 (Linux)