🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
11 messages
11 total messages Started by The King of Pots and Pans Tue, 20 Apr 2004 07:15
[slrn] quote rotations
#146761
Author: The King of Pots and Pans
Date: Tue, 20 Apr 2004 07:15
20 lines
1517 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I use emacs as my editor with slrn. Not sure if this is a slrn
question or emacs questions. How do I go about specifying a file that
has nothing but quotations of famous sayings in it so that a random
one is picked and inserted into my .signature file for each message I
write? 



- -- 
The King of Pots and Pans
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAhM/ad/wbFEGfmloRAnG/AJ9na17C78QiKR5c2HF/vsEgpNLq7ACggFfI
Dd9N7vclMNSUxGb/ruFpb7c=
=w7Aa
-----END PGP SIGNATURE-----
Re: [slrn] quote rotations
#146763
Author: Blinky the Shark
Date: Tue, 20 Apr 2004 10:48
20 lines
1917 bytes
The King of Pots and Pans wrote:

> I use emacs as my editor with slrn. Not sure if this is a slrn
> question or emacs questions. How do I go about specifying a file that
> has nothing but quotations of famous sayings in it so that a random
> one is picked and inserted into my .signature file for each message I
> write? 

> - -- 

You might want to *have* a valid sig, as part of this plan -- or, better
yet, even before the plan unfolds.  That would, of course, involve a valid
sig delimiter -- a line with nothing but two hyphens followed by one space
(before the CR or LF whatever).  Thank you for the courtesy.

-- 
Blinky                                              Linux RU 4892F
Nigerian Scam From Space                http://snipurl.com/iss419
The Ugliest Cars (mildly adult)         http://snipurl.com/ugliest 
New Windows - Don't Wait For Longhorn!  http://snipurl.com/newwin 
Re: [slrn] quote rotations
#146765
Author: Keith
Date: Tue, 20 Apr 2004 12:27
34 lines
2152 bytes
news:h64hc.65264$U83.46688@fed1read03
, The King of Pots and Pans wrote:

> Hash: SHA1
> 
> I use emacs as my editor with slrn. Not sure if this is a slrn
> question or emacs questions. How do I go about specifying a file that
> has nothing but quotations of famous sayings in it so that a random
> one is picked and inserted into my .signature file for each message I
> write? 
> 
> - -- 

 Here is a old script I used to generate
random sigs with fortune along with my standard
signature. I just named it slrn2 and placed it in 
$HOME/bin 

#!/bin/bash
echo -e "Best Regards,  Keith  NW Oregon Radio http://n6jpa.home.attbi.com/ \n\
The problem with Linux is that users always BASH Tux's shell. `uname -sr`">/home/keith/.signature_ars
/usr/games/fortune -s >>/home/keith/.signature_ars
slrn -f ~/.arsrc -i ~/.slrnars $*
#End script

And here is a sample of a signature generated with the script:

Best Regards,  Keith  NW Oregon Radio http://n6jpa.home.attbi.com/ 
The problem with Linux is that users always BASH Tux's shell. Linux 2.4.7-10
Love thy neighbor, tune thy piano.

-- 
Best Regards, Keith 
http://kilowatt-radio.org/ NW Oregon Radio Page
Re: [slrn] quote rotations
#146769
Author: The King of Pots and Pans
Date: Tue, 20 Apr 2004 16:23
33 lines
2255 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 20 Apr 2004 at 10:48 GMT, Blinky the Shark spoke:
> The King of Pots and Pans wrote:
> 
>> I use emacs as my editor with slrn. Not sure if this is a slrn
>> question or emacs questions. How do I go about specifying a file
>> that has nothing but quotations of famous sayings in it so that a
>> random one is picked and inserted into my .signature file for each
>> message I write?
>> - -- 
> 
> You might want to *have* a valid sig, as part of this plan -- or,
> better yet, even before the plan unfolds.  That would, of course,
> involve a valid sig delimiter -- a line with nothing but two hyphens
> followed by one space (before the CR or LF whatever).  Thank you for
> the courtesy.

That's a "feature" of PGP and GnuPG. I'm sure there's a very good
technical reason why they munge my signature by turning my "--" into a
"- --". You seem like a smart fellow; I'm sure you'll figure out why
if you look it up.

- -- 
The King of Pots and Pans
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAhVBqd/wbFEGfmloRAkVSAJkBpc9Ilxnm8qZ8kvxfjyFkrdVqvgCfYcJ/
NbiKmwcWfrxRj1knsZT6/UM=
=3bsh
-----END PGP SIGNATURE-----
Re: [slrn] quote rotations
#146770
Author: surtin
Date: Tue, 20 Apr 2004 17:09
41 lines
3095 bytes
On 2004-04-20, Blinky the Shark wrote:
> The King of Pots and Pans wrote:

>> I use emacs as my editor with slrn. Not sure if this is a slrn
>> question or emacs questions. How do I go about specifying a file that
>> has nothing but quotations of famous sayings in it so that a random
>> one is picked and inserted into my .signature file for each message I
>> write? 

>> - --

> You might want to *have* a valid sig, as part of this plan -- or, better
> yet, even before the plan unfolds.  That would, of course, involve a valid
> sig delimiter -- a line with nothing but two hyphens followed by one space
> (before the CR or LF whatever).  Thank you for the courtesy.

GPG tends to screw up a valid sig for some reason, but there is an option in
the GPG macro for slrn that appends to the signature rather then mess it up
like that.


Here's a little quote from the macro:

"You may want to append your signature, thus avoiding the signature delimiter
to change from `-- ' to `- -- ' (this is done by GnuPG/PGP when creating the
clearsign of a Usenet article); in order to achieve this, set the "append_sig"
option to a non-zero value:
  
    gnupg->set_preference ("append_sig", 1);
      
        Note: this option imply the "include_sig" option; setting
	"include_sig"
        to zero will automatically set the "append_sig" option to zero."

If yer not usin' that macro then I guess this doesn't really help. :P

-- 
-.surtin.- | He's the kind of guy, that, well, if you were ever in a jam 
    -o)    | he'd be there... with two slices of bread and some chunky
     /\    | peanut butter. 
    _\_v   | 
Re: [slrn] quote rotations
#146775
Author: Blinky the Shark
Date: Tue, 20 Apr 2004 17:44
31 lines
2418 bytes
The King of Pots and Pans wrote:

> On Tue, 20 Apr 2004 at 10:48 GMT, Blinky the Shark spoke:
>> The King of Pots and Pans wrote:

>>> I use emacs as my editor with slrn. Not sure if this is a slrn
>>> question or emacs questions. How do I go about specifying a file
>>> that has nothing but quotations of famous sayings in it so that a
>>> random one is picked and inserted into my .signature file for each
>>> message I write?
>>> - -- 

>> You might want to *have* a valid sig, as part of this plan -- or,
>> better yet, even before the plan unfolds.  That would, of course,
>> involve a valid sig delimiter -- a line with nothing but two hyphens
>> followed by one space (before the CR or LF whatever).  Thank you for
>> the courtesy.

> That's a "feature" of PGP and GnuPG. I'm sure there's a very good
> technical reason why they munge my signature by turning my "--" into a
> "- --". You seem like a smart fellow; I'm sure you'll figure out why
> if you look it up.

Actually, it matters not *why* they fuck up your sig.  Only that they
do.

-- 
Blinky                                              Linux RU 4892F
Nigerian Scam From Space                http://snipurl.com/iss419
The Ugliest Cars (mildly adult)         http://snipurl.com/ugliest 
New Windows - Don't Wait For Longhorn!  http://snipurl.com/newwin 
Re: [slrn] quote rotations
#146776
Author: Blinky the Shark
Date: Tue, 20 Apr 2004 17:47
29 lines
2310 bytes
surtin wrote:
> On 2004-04-20, Blinky the Shark wrote:
>> The King of Pots and Pans wrote:

>>> I use emacs as my editor with slrn. Not sure if this is a slrn
>>> question or emacs questions. How do I go about specifying a file that
>>> has nothing but quotations of famous sayings in it so that a random
>>> one is picked and inserted into my .signature file for each message I
>>> write? 

>>> - --

>> You might want to *have* a valid sig, as part of this plan -- or, better
>> yet, even before the plan unfolds.  That would, of course, involve a valid
>> sig delimiter -- a line with nothing but two hyphens followed by one space
>> (before the CR or LF whatever).  Thank you for the courtesy.

> GPG tends to screw up a valid sig for some reason, but there is an option in
> the GPG macro for slrn that appends to the signature rather then mess it up
> like that.

I guess Pots and Pans isn't a smart enough fellow to use it.  Thanks
for the info, though.

-- 
Blinky                                              Linux RU 4892F
Nigerian Scam From Space                http://snipurl.com/iss419
The Ugliest Cars (mildly adult)         http://snipurl.com/ugliest 
New Windows - Don't Wait For Longhorn!  http://snipurl.com/newwin 
Re: [slrn] quote rotations
#146777
Author: pkd
Date: Tue, 20 Apr 2004 17:49
51 lines
2530 bytes
On 20 Apr 2004 10:48:18 GMT, Blinky the Shark wrote:

> The King of Pots and Pans wrote:
>
>> I use emacs as my editor with slrn.

[...]

>> - -- 
>
> You might want to *have* a valid sig, as part of this plan -- or, better
> yet, even before the plan unfolds.  That would, of course, involve a valid
> sig delimiter -- a line with nothing but two hyphens followed by one space
> (before the CR or LF whatever).  Thank you for the courtesy.

this is not my work, i just adapted someone else's to the need:

,----[ treat_pgp.sl ]
| implements("treat_pgp");
| 
| static define strip_pgp_sig ()
| {
|   variable n, article, processed_article;
| 
|   article = article_as_string();
| 
|   if (0 == is_substr(article, "\n-----BEGIN PGP SIGNED MESSAGE-----\n"))
|     return;
| 
|   (processed_article, ) = strreplace(article,
|                                      "- -- ",
|                                      "-- ",
|                                      -1);
| 
|   n = string_match(processed_article, "\n-----BEGIN PGP SIGNATURE-----\n.*", 1);
| 
|   (processed_article, ) = strreplace(processed_article,
| 				     substr(processed_article, n, -1),
| 				     "",
| 				     -1);
| 
|   replace_article(processed_article);
| }
| 
| !if (1 == register_hook("read_article_hook", "treat_pgp->strip_pgp_sig"))
|      error("failure registering read_article_hook[strip_pgp_sigdash]");
| 
`----

-- 
Some marriages are made in heaven -- but so are thunder and lightning.
Re: [slrn] quote rotations
#146778
Author: pkd
Date: Tue, 20 Apr 2004 17:49
29 lines
2225 bytes
On Tue, 20 Apr 2004 07:15:25 GMT, The King of Pots and Pans wrote:

> I use emacs as my editor with slrn. Not sure if this is a slrn
> question or emacs questions. How do I go about specifying a file that
> has nothing but quotations of famous sayings in it so that a random
> one is picked and inserted into my .signature file for each message I
> write? 

post.el rocks! just put it into your emacs path and add these lines to
your `.emacs':

--8<---------------cut here---------------start------------->8---
(load-library "post")
(setq post-fixed-signature-source "/dev/null")
(setq post-random-signature-command "/usr/games/fortune -s all")
(add-hook 'post-mode-hook 'post-random-signature)
(add-hook 'post-mode-hook 'turn-on-font-lock)

(load-library "message")
(define-key post-mode-map "\M-\r" 'message-newline-and-reformat)
(define-key post-mode-map "\C-c\C-l" 'message-elide-region)
(define-key post-mode-map "\C-c\C-z" 'message-kill-to-signature)
(define-key post-mode-map "\C-c\C-v" 'message-delete-not-region)
--8<---------------cut here---------------end--------------->8---

-- 
We are not loved by our friends for what we are; rather, we are loved in
spite of what we are.
		-- Victor Hugo
Re: [slrn] quote rotations
#146796
Author: The King of Pots and Pans
Date: Wed, 21 Apr 2004 00:41
13 lines
1524 bytes
On Tue, 20 Apr 2004 at 17:09 GMT, surtin spoke:

>     gnupg->set_preference ("append_sig", 1);

Yes I used that for a while. But what the does, as you said, is put
your signature below the --PGP END-- cruft. This is unfortunate the
eye will stop reading once it encounters the --PGP END-- cruft and
won't continue onward to view the signature below.

In my opinion, this is an unacceptable solution. 

-- 
The King of Pots and Pans
Re: [slrn] quote rotations
#146805
Author: Ben Shimmin
Date: Wed, 21 Apr 2004 10:12
16 lines
1809 bytes
The King of Pots and Pans <King@ask.for.email.invalid>:
> On Tue, 20 Apr 2004 at 17:09 GMT, surtin spoke:
> 
>>     gnupg->set_preference ("append_sig", 1);
> 
> Yes I used that for a while. But what the does, as you said, is put
> your signature below the --PGP END-- cruft. This is unfortunate the
> eye will stop reading once it encounters the --PGP END-- cruft and
> won't continue onward to view the signature below.
> 
> In my opinion, this is an unacceptable solution. 

Given that your .signature appears only to contain an abridged version of
your `From:' header anyway, is this such a drastic loss?

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