πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #54469

Re: slrn and GPG/PGP -newbie Q's

#54469
From: Christian Perrier
Date: Tue, 23 Nov 1999 00:00
75 lines
2678 bytes
Duncan Watson <climer@io.toSPAMast.com> wrote :

>1. How can I get pgp or gpg intergration with slrn?

Got this from nsr :

1. Insert the following in your .slrnrc :

% Command used to invoke editor.  In the following example, %s represents
% the file name and %d represents the starting line number
% set editor_command "jed %s -g %d -tmp"
set editor_command "postpgp.pl %s"

2. put postpgp.pl in your path (the called editor is either defined
in EDITOR or manually in the script. I put "jed" but you may of
course put your favorite one). THe call for "pgp" is hardcoded in
the script

#!/usr/bin/perl
# [postpgp.pl] v. 2.0
#
# written by jason steiner, jsteiner@anwsun.phya.utoledo.edu, Jan 1993
#
# if you use or make improvements to this program i would appreciate
# copies of your modifications & your PGP public key.
#
# [06.03.1998] modified by RenοΏ½ Scholz <mrz@informatik.uni-jena.de>

$HANDLE_POINTS=0;       # if 1: change . to _.  (for inews)

($visual=$ENV{'EDITOR'}) || ($visual="jed");
#($visual="/usr/bin/jed");
$name=$ARGV[$#ARGV];    # name of edited file in /tmp (or so)

system($visual,@ARGV);  # create posting with editor

print "Sign this message? [yN]: "; chomp($_=<STDIN>);
if(lc($_) eq "y")
{
  push(@opts, '-st', '+clearsig=on');
  &sign_message();
}



sub sign_message
{
  if(@opts)
  {
    open(INPUT,$name);
    open(HEAD,">$name.head");
    open(BODY,">$name.body");
    while (<INPUT>)
    {
      if (1 .. /^$/) { print HEAD; }
      else
      {
	s/^\./_./  if($HANDLE_POINTS);
	print BODY;
      }
    }
    close(HEAD);
    close(BODY);
    rename "$name.body2", "$name.body";
    system('pgp', '-a', @opts, "$name.body");
    system "cat $name.head $name.body.asc > $name";
    unlink("$name.head", "$name.body", "$name.body.asc");
  }
}


-- 


Technical Details
Message-ID: <slrn83kf1h.qno.bubulle@mykerinos.kheops.frmug.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!not-for-mail
References: <slrn83jfiq.10o.climer@trad.io.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn83kf1h.qno.bubulle@mykerinos.kheops.frmug.org>
Subject: Re: slrn and GPG/PGP -newbie Q's
Date: Tue, 23 Nov 1999 00:00:00 +0000
From: bubulle@mykerinos.kheops.frmug.org (Christian Perrier)
References: <slrn83jfiq.10o.climer@trad.io.com>
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!not-for-mail
X-Deja-AN: 552192100
Content-Transfer-Encoding: 8bit
Mail-Copies-To: never
X-Server-Date: 23 Nov 1999 07:03:14 GMT
Content-Type: text/plain; charset=iso-8859-15
Organization: | :noitazinagrO
User-Agent: slrn/0.9.5.7 (UNIX)
Mime-Version: 1.0
Reply-To: bubulle@kheops.frmug.org
Newsgroups: news.software.readers