🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #124933

Re: slrn macros to digitally sign posts in a PGP/MIME compatible way?

#124933
From: Philip Willoughby
Date: Thu, 15 May 2003 09:46
41 lines
2300 bytes
On Wed, 14 May 2003 21:45:59 GMT, Emmanuele Bassi <zefram@wolverine.lohacker.home> wrote:
> You could give this macro a try:
> 
> 	http://digilander.iol.it/ebassi/gnupg.sl

I made a few modifications for my use, so it doesn't remember the
passphrase for instance.  However, there is one modification that might
interest you.  If you change:

       else
         sign_cmd = Prefs["sign_command"];
    }
  while (system (sprintf ("echo \'%s\' | %s '%s'", str, sign_cmd, body_file)));

to:

       else
         sign_cmd = Prefs["sign_command"];
       fp = popen (sprintf ("%s '%s'", sign_cmd, body_file), "w");
       fputs (str, fp);
    }
  while (pclose(fp));

the semantics are unchanged, but your passphrase will not be snoopable
by anyone running `ps -efw' at the time.  Not much of an issue except on
multiuser systems I admit, but nice anyway...

I may try and modify your code to deal with multipart/signed messages,
but probably not anytime soon...

Thanks for a great macro!

Regards,

Philip Willoughby
-- 
Systems Programmer, Department of Computing, Imperial College, London, UK

echo bzidd@nfo.ho.co.se | tr "bizndfohces" "pwgd9ociaku"
Why reinvent the wheel?                 Because we can make it rounder...
Technical Details
Message-ID: <b9vnl7$tm8$1@harrier.doc.ic.ac.uk>
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!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!logbridge.uoregon.edu!server3.netnews.ja.net!news.doc.ic.ac.uk!not-for-mail
References: <b9u7oi$shj$1@harrier.doc.ic.ac.uk> <slrnbc5eb1.4uq.zefram@wolverine.lohacker.net>

Show Full Headers
Complete Article Headers
Message-ID: <b9vnl7$tm8$1@harrier.doc.ic.ac.uk>
Subject: Re: slrn macros to digitally sign posts in a PGP/MIME compatible way?
Date: Thu, 15 May 2003 09:46:15 +0000
From: Philip Willoughby <pgw99@doc.ic.ac.uk>
References: <b9u7oi$shj$1@harrier.doc.ic.ac.uk> <slrnbc5eb1.4uq.zefram@wolverine.lohacker.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!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!logbridge.uoregon.edu!server3.netnews.ja.net!news.doc.ic.ac.uk!not-for-mail
Newsgroups: news.software.readers
Organization: Imperial College, London
Lines: 40
NNTP-Posting-Host: kungfu.doc.ic.ac.uk
X-Trace: harrier.doc.ic.ac.uk 1052991975 30408 146.169.6.1 (15 May 2003 09:46:15 GMT)
X-Complaints-To: abuse@doc.ic.ac.uk
NNTP-Posting-Date: Thu, 15 May 2003 09:46:15 +0000 (UTC)
User-Agent: slrn/0.9.7.4 (Linux)