🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by Jason Stokes Sun, 27 Apr 1997 00:00
slrn - executable .sigfile
#33170
Author: Jason Stokes
Date: Sun, 27 Apr 1997 00:00
19 lines
1004 bytes

In EXMH, I can make my .signature file generate a random signature by making
it executable and putting a command in it, say "fortune", that generates
some output.  EXMH executes the .signature file instead of reading it, and
puts the standard output as the signature for the message.

However, slrn doesn't do that.  So in slrn, my signature ends up looking
like this:

-- 
echo "Jason Stokes: j.stokes @ bohm.anu.edu.au"
echo "Ph: +61 06 291 93 84"
echo 
fortune

Ways to implement this in slrn?

Re: slrn - executable .sigfile
#33175
Author: Sven Guckes
Date: Sun, 27 Apr 1997 00:00
11 lines
1002 bytes

j.stokes@OUT-DAMNED-SPAM.bohm.anu.edu.au (Jason Stokes):
> In EXMH, I can make my .signature file generate a random signature ...
> However, slrn doesn't do that. [...] Ways to implement this in slrn?

There are, but JED does not do that.  And that's very very good.  Thanks, JED!

Sven

Re: slrn - executable .sigfile
#33193
Author: Norman Kraft
Date: Mon, 28 Apr 1997 00:00
23 lines
1611 bytes

On 27 Apr 1997 03:28:18 GMT, Jason Stokes <j.stokes@OUT-DAMNED-SPAM.bohm.anu.edu.au> wrote:

 >In EXMH, I can make my .signature file generate a random signature by making
 >it executable and putting a command in it, say "fortune", that generates
 >some output.  EXMH executes the .signature file instead of reading it, and
 >puts the standard output as the signature for the message.

Executing signature files can be a huge security risk, which is
why so few mail readers support it. If you really want it, though,
you could hack it into the slrn sources easily enough. 

Norm.

----------------------------------------------------------------------
Norman Kraft        | (h) nkraft@bkhouse.cts.com (w) nkraft@ormed.edu
Pacific College of  | "No man steps in the same river twice, for it's
Oriental Medicine   |   not the same river and he's not the same man" 
San Diego, CA       |         - Heraclitus
----------------------------------------------------------------------

Re: slrn - executable .sigfile
#33213
Author: Hubert Canon
Date: Tue, 29 Apr 1997 00:00
47 lines
1960 bytes
Le 27 Apr 1997 03:28:18 GMT,
   Jason Stokes <j.stokes@OUT-DAMNED-SPAM.bohm.anu.edu.au> ecrivait :
> In EXMH, I can make my .signature file generate a random signature by making
> it executable and putting a command in it, say "fortune", that generates
> some output.  EXMH executes the .signature file instead of reading it, and
> puts the standard output as the signature for the message.

If you are under unix, you can use fifos. I have a perl script that
create a file .signature, and each time you read this file, it execute
some program. :

#!/usr/local/bin/perl
$FIFO = '.signature';
$ENV{PATH} .= ":/etc:/usr/games";     # where your fortune program is
while (1) {
    unless (-p $FIFO) {
        unlink $FIFO;
        system('mknod', $FIFO, 'p')
            && die "can't mknod $FIFO: $!";
    }
    # next line blocks until there's a reader
    open (FIFO, "> $FIFO") || die "can't write $FIFO: $!";
    print FIFO "John Smith (smith\@host.org)\n", `fortune -s`;
    close FIFO;
    sleep 2;    # to avoid dup sigs
}



you just have to launch this program in background at startup, and you
have a different signature every time :

in your .login or .profile or .xinitrr :
make-signature &

and then :
cat .signature
cat .signature
cat .signature


-- 
Hubert Canon
canon@irisa.fr

Re: slrn - executable .sigfile
#33305
Author: Greg Wooledge
Date: Sat, 03 May 1997 00:00
20 lines
1376 bytes

On 28 Apr 1997 17:11:39 GMT, Norman Kraft <nkraft@bkhouse.cts.com> wrote:

> >In EXMH, I can make my .signature file generate a random signature by making
> >it executable and putting a command in it, say "fortune", that generates
> >some output.

>Executing signature files can be a huge security risk, which is
>why so few mail readers support it.

Please explain this.  I can't think of any way it could be a security
risk.  Sure, you could shoot yourself in the foot, but that's beside
the point.
-- 
------------                  Greg Wooledge                  -------------
-------                   wooledge@kellnet.com                     -------
---              http://kellnet.com/wooledge/main.html                 ---

Re: slrn - executable .sigfile
#33325
Author: Hrvoje Niksic
Date: Sun, 04 May 1997 00:00
23 lines
1824 bytes
wooledge@kellnet.com (Greg Wooledge) writes:

> Please explain this.  I can't think of any way it could be a security
> risk.  Sure, you could shoot yourself in the foot, but that's beside
> the point.

It's a security risk if a program does so _by default_.  For example,
I wouldn't like new users having to be careful about permissions of
their .signature files.

If, however, you have to turn on an option for it to be done (or write
a script, or a piece of Lisp or whatever), that's another matter
entirely.  Then it is moved from security risk from shooting yourself
in the foot.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
`VI' - An editor used by those heretics that don't subscribe to
       the Emacs religion.

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