Article View: news.software.readers
Article #146777Re: [slrn] quote rotations
From: pkd
Date: Tue, 20 Apr 2004 17:49
Date: Tue, 20 Apr 2004 17:49
51 lines
2530 bytes
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.
Technical Details
Message-ID:
<c63nqv$70294$1@ID-219024.news.uni-berlin.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!ppp-44-223.98-62.inwind.IT!not-for-mailReferences:
<h64hc.65264$U83.46688@fed1read03> <slrnc89vvi.8v7.no.spam@thurston.blinkynet.net>Show Full Headers
Complete Article Headers
Message-ID: <c63nqv$70294$1@ID-219024.news.uni-berlin.de> Subject: Re: [slrn] quote rotations Date: Tue, 20 Apr 2004 17:49:20 +0000 From: pkd <p_u_n_k_i_n_d@yahoo.it> References: <h64hc.65264$U83.46688@fed1read03> <slrnc89vvi.8v7.no.spam@thurston.blinkynet.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!ppp-44-223.98-62.inwind.IT!not-for-mail Newsgroups: news.software.readers Lines: 51 NNTP-Posting-Host: ppp-44-223.98-62.inwind.it (62.98.223.44) X-Trace: news.uni-berlin.de 1082483360 7342372 I 62.98.223.44 ([219024]) X-Comment-To: no.spam@box.invalid User-Agent: slrn/0.9.8.0 (Linux) Hamster-Pg/1.13