Article View: news.software.readers
Article #21581Re: slrn + PGP?
From: J.B. Nicholson-Owens
Date: Sun, 12 May 1996 00:00
Date: Sun, 12 May 1996 00:00
90 lines
5788 bytes
5788 bytes
On 12 May 1996 01:08:01 -0700, E. <fnargle@primenet.com> wrote:
> I thought I saw a thread a while back about how to make slrn PGP-aware, but
> it seems to either A) have scrolled off the spool, or B) have been a
> figment of my imagination.
>
> If it's A, can someone kindly give me either a repost or a pointer?
>
> If it's B, anyone got any ideas?
From what I can determine, there seems to be some contention about this.
Currently, there is a patch for slrn to add some PGP capabilities, and
there's the suggestion to make a shell wrapper for your editor (or, more
appropriately $SLANG_EDITOR or $EDITOR) so slrn calls this shell wrapper
which calls PGP and modifies your post just before delivery to the news
server (and e-mail if you send courtesy copies).
My problems with these are:
* They're incomplete: no simple script can easily do all the things I want
to do with PGP and slrn. I never get the choice to clearsign or encrypt
part of a post or e-mail; these solutions tend to work across the entire
post or do nothing at all. Verifying signed posts is usually not an
option with these solutions, or the verification is not very well
controlled (I imagine handling multiple signed sections would be beyond
most shell scripts). Also, automatically looking up keys in different
places (key servers, for instance) is not available. Handling automatic
lookup without adding the keys to your public keyring permanently and
scanning headers to automatically handle public-key encryption is beyond
the support level of said add-ons and scripts.
* They don't handle things with a nice UI: an intuitive consistent UI is
very important to me because it keeps me from having to learn multiple
interfaces to do a simple task. Scrolling up prompts (from a shell
script which disturbs the slrn screen layout), asking tons of yes/no
questions to do something routine or something which can be covered by
preference settings is not my idea of a good UI.
* Patches to shipped slrn code are not as portable as high-level S-Lang
code and difficult to maintain: patching C code is not the most portable
way to go and it uses more memory than autoloaded scripts. Compiled-in
code is loaded whether you use the functionality or not, and is
therefore not a good way to implement many things. Autoloaded compiled
S-Lang scripts are much better because they are loaded when needed, thus
minimizing the app's overall resource usage. I wouldn't mind it if much
of slrn's functionality were reimplemented to load-when-needed even
though I use virtually all of slrn.
That said, I don't think that the patch or editor wrapper are completely
worthless; they provide a solution that is relatively quick and easy to
implement to take advantage of commonly used PGP functionality.
However, I believe much of what PGP does should be implemented in the
editor, not the newsreader (in the case of `jed', implemented as autoloaded
S-Lang scripts the user can compile at install time like the scripts that
ship with jed). Similar to Mailcrypt for emacs, such a package would make a
lot of PGP functionality available with a consistent UI, easy to use without
compromising security and (for the most part) automatic and seamless. Also,
you could easily use PGP stuff when you're not using your editor with slrn.
Finally, you could use it without being tied to one particular OS.
However, not everything should be implemented in the editor, in my opinion.
I think verification, for instance, should be implemented in the newsreader
via external S-Lang scripts (compiled on installation). It is silly to have
to go to an editor to verify a post. Verification in the editor would be a
nice extra, but verification in the newsreader is necessary.
Currently slrn does not have the hooks to do these things cleanly,
intuitively and with minimum maintenance. Jed has the hooks to do this
stuff for the editor, and this is one of the reasons I'm learning S-Lang.
What would appropriate hooks for slrn look like? I'm not sure exactly, but
I'd imagine one (or perhaps a set of hooks) would allow a post to be scanned
and changed before it's presented to the user (in my opinion the
recently-added ``spoiler saver'' would be better implemented as a use of
these hooks instead of always-loaded compiled-into-slrn code -- it would
make nice example code in any event). Another hook (or set of hooks) could
allow similar programmatic changing after it comes out of the editor and
before it's delivered to the server.
I don't know what the plans are for S-Lang control of slrn via external
scripts, but I know, like jed, the S-Lang interpreter will be built into a
future version of slrn. However, I'm certain that all the PGP interfaces
I've seen (except Mailcrypt) offer less than optimal solutions, making
Mailcrypt-like functionality a good starting point. How PGP 3.0 and
PGP/MIME will affect this, I'm not sure since PGP 3.0 isn't out and to my
knowledge, the debate continues about how to best integrate PGP and MIME.
Technical Details
Message-ID:
<slrn4pch4d.lj4.jbn@mystery-train.cu-online.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-mailReferences:
<slrn4pb71o.pb8.fnargle@usr5.primenet.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn4pch4d.lj4.jbn@mystery-train.cu-online.com> Subject: Re: slrn + PGP? Date: Sun, 12 May 1996 00:00:00 +0000 From: jbn@mystery-train.cu-online.com (J.B. Nicholson-Owens) References: <slrn4pb71o.pb8.fnargle@usr5.primenet.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: 154488939 Organization: Organizing Organisms & Organs Newsgroups: news.software.readers