🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Philip Willoughby Wed, 14 May 2003 20:08
slrn macros to digitally sign posts in a PGP/MIME compatible way?
#124877
Author: Philip Willoughby
Date: Wed, 14 May 2003 20:08
19 lines
1604 bytes
I'm looking for some s-lang macros for slrn to automatically sign all my
posts with my GPG key (in a similar way to mutt, but without the key
retention thing).

I've tried to write this myself, putting it in a post_filter_hook, but I
don't know enough s-lang (nor, to be honest, do I want to learn).

If slrn can't be made to do it, is there another mutt-like text-only
client that can?  

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...
Re: slrn macros to digitally sign posts in a PGP/MIME compatible way?
#124885
Author: Emmanuele Bassi
Date: Wed, 14 May 2003 21:40
22 lines
1892 bytes
* Philip Willoughby <pgw99@doc.ic.ac.uk> [2003-05-14 20:08]:

> I'm looking for some s-lang macros for slrn to automatically sign all my
> posts with my GPG key

You could give a try to this macro:

	http://digilander.iol.it/ebassi/gnupg.sl

> (in a similar way to mutt, but without the key
> retention thing).

Well, gnupg.sl does, in fact, save the passphrase. But you could set the
timeout to 1 second.

Bye,
 Emmanuele.

-- 
Emmanuele Bassi              [ http://digilander.iol.it/ebassi/slrn.html ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738  08BD 8ECC DB8F A432 0FF4
Re: slrn macros to digitally sign posts in a PGP/MIME compatible way?
#124887
Author: Emmanuele Bassi
Date: Wed, 14 May 2003 21:45
22 lines
1763 bytes
* Philip Willoughby <pgw99@doc.ic.ac.uk> [2003-05-14 20:08]:

> I'm looking for some s-lang macros for slrn to automatically sign all my
> posts with my GPG key

You could give this macro a try:

	http://digilander.iol.it/ebassi/gnupg.sl

> (in a similar way to mutt, but without the key
> retention thing).

Well, gnupg.sl does, in fact, save the passphrase. But you could set the
timeout to 1 second.

Bye,
 Emmanuele.

-- 
Emmanuele Bassi              [ http://digilander.iol.it/ebassi/slrn.html ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738  08BD 8ECC DB8F A432 0FF4
Re: slrn macros to digitally sign posts in a PGP/MIME compatible way?
#124929
Author: Philip Willoughby
Date: Thu, 15 May 2003 08:33
24 lines
1778 bytes
14 May 2003 21:45:59, Emmanuele Bassi <zefram@wolverine.lohacker.home> wrote:
> * Philip Willoughby <pgw99@doc.ic.ac.uk> [2003-05-14 20:08]:
> 
>> I'm looking for some s-lang macros for slrn to automatically sign all my
>> posts with my GPG key
> 
> You could give this macro a try:
> 
> 	http://digilander.iol.it/ebassi/gnupg.sl

Thanks very much - it looks like just what I was looking for.

That URL gives a 404 error - I think you've moved it to
http://digilander.libero.it/ebassi/slrn/gnupg.sl

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...
Re: slrn macros to digitally sign posts in a PGP/MIME compatible way?
#124933
Author: 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...
Re: slrn macros to digitally sign posts in a PGP/MIME compatible way?
#124938
Author: Emmanuele Bassi
Date: Thu, 15 May 2003 14:58
35 lines
2334 bytes
* Philip Willoughby <pgw99@doc.ic.ac.uk> [2003-05-15 11:46]:

> 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...

Thanks. I've had in mind to implement it, but never found the time, and
since I'm the only user I waited for someone to do that for me[1]. ;-)

I'll apply your changes.

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

Articles signed with application/pgp should not be sent on Usenet,
although I've seen some of them on mailing-list/netnews gateways (mostly
from *nix MUAs that supports application/pgp).

If you want to work on that, you're welcome.

> Thanks for a great macro!

Thanks for your changes. :-)

+++

[1] It's GPL'd for this very reason. :-)

Bye,
 Emmanuele.

-- 
Emmanuele Bassi              [ http://digilander.iol.it/ebassi/slrn.html ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738  08BD 8ECC DB8F A432 0FF4
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads