🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
32 messages
32 total messages Started by Troy Piggins Mon, 02 Oct 2006 03:09
[slrn] very easy display filter enabling colour in message body
#191220
Author: Troy Piggins
Date: Mon, 02 Oct 2006 03:09
96 lines
4373 bytes
I've been using a demime and t-prot display filter for some time
to tidy up MIME pgp signed and html messages, and trimming long
quote blocks, trimming overly long sigs etc.  All good.

I just recently started playing with my own display filter to
take it all one step further to fix some things like improper sig
delimiters etc using a sed script.  I got that working and
thought I'd share.  It's very customisable.

While playing with it I had a thought about colours (that's the
same as colors, but with a 'u' in it like there should be ;-) ).
One of the things that frustrate me with slrn is that you can't
colour the body of a message for anything other than slrn's
inbuilt options - emphasis, bold, url's etc.

Well guess what, with my new homemade display filter you can.
Sort of.  Just create a sed expression to change the text you
want coloured into /emphasis/, *bold*, or _underline_.

eg, say I want to colour my name in the message body.  I add this
entry into my display filter:

sed -e '
s/Troy Piggins/*&*/
# other substitutions can go here too!
# eg fix incorrect sig delimiters
s/^--$/-- /
'

This changes my name to *Troy Piggins* in the message body.

I saved the above as a bash script in $HOME/bin/slrn_display_filter
then 'interpret $HOME/.slrn/display_filter.sl' in my
$HOME/.slrnrc :

%variable tmpdir = "$HOME/.tmpdir"; % you better make sure it
%exists

define display_filter () {

variable display_filter_tmp, raw_art, fp, art_display_filter;
  display_filter_tmp = "/tmp/slrn_display_filter."+ string (getpid () );
  raw_art = raw_article_as_string ();
  fp = fopen (display_filter_tmp, "w");
  if (fp == NULL)
    error (_function_name () +": could not open "+display_filter_tmp);
  fputs (raw_art, fp);
  fclose (fp);
  fp = popen ("/home/troy/bin/slrn_display_filter - < "+display_filter_tmp, "r");
  if (fp == NULL)
    error (_function_name () +": display_filter pipe failed" );
  art_display_filter = strjoin (fgetslines (fp), "");
  pclose (fp);
  if (art_display_filter != "") replace_article (art_display_filter);
  else error (_function_name () +": failed");
  system ("rm "+display_filter_tmp);

}

define register_display_filters () {
  () = register_hook ("read_article_hook", "display_filter");
}

define unregister_display_filters () {
  () = unregister_hook ("read_article_hook", "display_filter");
}

register_display_filters ();

definekey ("register_display_filters", "\e6", "article");
definekey ("unregister_display_filters", "\e7", "article");

I have set set emphasized_text_mask 1 and
set emphasized_text_mode 1
so I don't see the *, / or _

It's very rudimentary at the moment.  I'd appreciate comments or
help to take it further.

There are some limitations - I tried sed script for smiley faces
like :) to change to /:)/ but slrn's inbuilt emphasis detection
algorithm doesn't seem to like the colons or something.

Also if you followup a filtered message, it's the filtered
message that is quoted not the original, because the macro
replaces the article (not on the server, just viewed).  You can
turn off the filter by hitting <esc>-7 or whatever you assign
unregister_display_filters to.

Hope the above makes sense.  If not, just ask.

-- 
Troy Piggins
 ,-o
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 12:37:32 up 21 days,18:06,2 users,load average:0.00,0.00,0.00
Re: [slrn] very easy display filter enabling colour in message body
#191221
Author: Alan Connor
Date: Mon, 02 Oct 2006 05:19
45 lines
2764 bytes
On news.software.readers, in <20061002123732@usenet.piggo.com>,
"Troy Piggins" wrote:

Troy,

> I've been using a demime and t-prot display filter for some
> time to tidy up MIME pgp signed and html messages, and trimming
> long quote blocks, trimming overly long sigs etc.  All good.

HTML has no place on the Usenet. It belongs on websites. Neither
does MIME/multi-part. PGP/GPG sigs are worthless on the Usenet
(as used currently) for two reasons:

1. Unless you very carefully investigate them, they prove nothing   
   but the fact that someone has a PGP/GPG keypair, which can
   be produced by the dozens.

   That same person could be posting under other aliases without
   that sig. Or with other sigs.

2. Almost no one has the software (installed and configured)
   needed to do even the most basic (and useless) of 
   authentication checks on the sigs.

Not going to help you indulge people who are just cluttering up
their posts with gratuitous garbage.

Almost always in lieu of content. And/or to deceive. To make
their sockpuppets appear different from each other. Same for
X-Face/Face.

Pretty soon, if this keeps up, there are going to be 1000 trolls
on the Usenet, period, each with hundreds of sockpuppets, using
specialized software to keep up with all of them.

Everyone else will have left them to live in their own shit.

<snip>

Alan

-- 
http://home.earthlink.net/~alanconnor/contact.html
http://home.earthlink.net/~alanconnor/cr.html
http://home.earthlink.net/~alanconnor/publickey.html
Re: [slrn] very easy display filter enabling colour in message body
#191223
Author: Troy Piggins
Date: Mon, 02 Oct 2006 05:39
43 lines
2438 bytes
* Alan Connor wrote:
> On news.software.readers, in <_20061002123732@usenet.piggo.com_>,
> "Troy Piggins" wrote:
>
> Troy,

G'day Alan.  Not sure why you crossposted, my post had nothing to
do with nanae.  You didn't read all of it apparently.

>> I've been using a demime and t-prot display filter for some
>> time to tidy up MIME pgp signed and html messages, and trimming
>> long quote blocks, trimming overly long sigs etc.  All good.
>
> HTML has no place on the Usenet. It belongs on websites. Neither

Agreed.  That's not what my post was about.

> does MIME/multi-part. PGP/GPG sigs are worthless on the Usenet

Agreed.  Again, that's not what my post was about.  The paragraph
you read was only an intro.  You should have read more.  It's
very hard to cram a long post into one paragraph.  Sorry.

[snip]

> Not going to help you indulge people who are just cluttering up
> their posts with gratuitous garbage.

I wasn't asking for your help to indulge anyone except yourself.
You are a slrn user, and my post was intended to make your
reading experience more pleasant.  It details a simple display
filter with which you can use sed, or in fact pipe the message
body through any program you like.

[snip]

Peace.

-- 
Troy Piggins
 ,-o
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 15:28:09 up 21 days,20:56,2 users,load average:0.02,0.02,0.00
[Kook] Re: Re: [slrn] very easy display filter enabling colour in messaQ
#191224
Author: Alan Connor FGA
Date: Mon, 02 Oct 2006 05:48
52 lines
3415 bytes
--===Next_Part===EJB4DWJN
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

<article not downloaded:

Info about "Alan Connor"

Alan "The Usenet Beavis" Connor is a good friend of Bigfoot: 
http://tinyurl.com/23r3f

A couple of years ago he was kidnapped and raped by Xena, 
the Warrior Princess: http://tinyurl.com/2gjcy

Beavis believes that the MSBlast virus of yesteryear was explicitly 
targeting him, for some inexplicable reason: http://tinyurl.com/ifrt

Beavis belongs to a UFO cult: http://tinyurl.com/2hhdx
Beavis's life in a UFO cult: http://tinyurl.com/24jqm
Beavis knows all about network security: http://tinyurl.com/5qqb6
And he's also a search engine expert: http://tinyurl.com/9pjnt 

Alan doesn't believe in anyone else's existence ...

Alan accuses practically everyone of being a troll/spammer.
Apparently, Alan is the only real person in the newsgroups in which he posts.

http://www.pearlgates.net/nanae/kooks/ac/fga.shtml
http://groups.google.com/groups/profile?enc_user=MQ9uxRYAAAAX2tAp-itjMPAOxLgFwCc3_gRbb05PKyTO4L-MEqh3HQ&hl=en
http://www.pearlgates.net/nanae/kooks/ac/
http://linuxmafia.com/faq/Mail/challenge-response.html
http://www.spamcop.net/fom-serve/cache/329.html#CR
http://www.gatago.com/authors_pgs/13650.html
http://blog.bananasplit.info/?p=84
http://tinyurl.com/ifrt
http://tinyurl.com/3h6a5
http://tinyurl.com/ys6z4

Also in the headers for alan to read.

--===Next_Part===EJB4DWJN
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


-=-
This message was sent via two or more anonymous remailing services.



--===Next_Part===EJB4DWJN--
Re: [slrn] very easy display filter enabling colour in message body
#191225
Author: Alan Connor
Date: Mon, 02 Oct 2006 06:41
69 lines
3577 bytes
On news.software.readers, in <20061002123732@usenet.piggo.com>,
"Troy Piggins" wrote:

Troy,

A chastised Alan Connor tries again :-)

> I've been using a demime and t-prot display filter for some
> time to tidy up MIME pgp signed and html messages, and trimming
> long quote blocks, trimming overly long sigs etc.  All good.
>
> I just recently started playing with my own display filter to
> take it all one step further to fix some things like improper
> sig delimiters etc using a sed script.  I got that working and
> thought I'd share.  It's very customisable.
>
> While playing with it I had a thought about colours (that's
> the same as colors, but with a 'u' in it like there should be
> ;-) ). One of the things that frustrate me with slrn is that
> you can't colour the body of a message for anything other than
> slrn's inbuilt options - emphasis, bold, url's etc.
>
> Well guess what, with my new homemade display filter you can.
> Sort of.  Just create a sed expression to change the text you
> want coloured into /emphasis/, *bold*, or _underline_.
>
> eg, say I want to colour my name in the message body.  I add
> this entry into my display filter:

>
> sed -e '
> s/Troy Piggins/*&*/
> # other substitutions can go here too!
> # eg fix incorrect sig delimiters
> s/^--$/-- /
> '
>
> This changes my name to *Troy Piggins* in the message body.

That shows up as your name with asterisks on either side of it
here in _my_ slrn. I like it that way.

The formatting of complex scripts like this one are really messed
up by the newsservers and especially when quoted in a followup.

Better to put it on a web/ftp site wrapped in basic HTML tags, or
uuencoded/mimencoded encoded tarballs.
 
<snip>

> algorithm doesn't seem to like the colons or something.
>
> Also if you followup a filtered message, it's the filtered
> message that is quoted not the original, because the macro
> replaces the article (not on the server, just viewed).  You can
> turn off the filter by hitting <esc>-7 or whatever you assign
> unregister_display_filters to.
>
> Hope the above makes sense.  If not, just ask.

I'll certainly give it a good study, Troy. Thanks.
Kind of strange mixing bash and slang, isn't it?

Alan

-- 
http://home.earthlink.net/~alanconnor/contact.html
http://home.earthlink.net/~alanconnor/cr.html
http://home.earthlink.net/~alanconnor/publickey.html
Re: [slrn] very easy display filter enabling colour in message body
#191226
Author: Troy Piggins
Date: Mon, 02 Oct 2006 07:04
81 lines
4092 bytes
* Alan Connor wrote:
> On news.software.readers, in <20061002123732@usenet.piggo.com>,
> "Troy Piggins" wrote:
>
> Troy,
>
> A chastised Alan Connor tries again :-)

No worries.

>> I've been using a demime and t-prot display filter for some
>> time to tidy up MIME pgp signed and html messages, and trimming
>> long quote blocks, trimming overly long sigs etc.  All good.
>>
>> I just recently started playing with my own display filter to
>> take it all one step further to fix some things like improper
>> sig delimiters etc using a sed script.  I got that working and
>> thought I'd share.  It's very customisable.
>>
>> While playing with it I had a thought about colours (that's
>> the same as colors, but with a 'u' in it like there should be
>> ;-) ). One of the things that frustrate me with slrn is that
>> you can't colour the body of a message for anything other than
>> slrn's inbuilt options - emphasis, bold, url's etc.
>>
>> Well guess what, with my new homemade display filter you can.
>> Sort of.  Just create a sed expression to change the text you
>> want coloured into /emphasis/, *bold*, or _underline_.
>>
>> eg, say I want to colour my name in the message body.  I add
>> this entry into my display filter:
>
>> sed -e '
>> s/Troy Piggins/*&*/
>> # other substitutions can go here too!
>> # eg fix incorrect sig delimiters
>> s/^--$/-- /
>> '
>>
>> This changes my name to *Troy Piggins* in the message body.
>
> That shows up as your name with asterisks on either side of it
> here in _my_ slrn. I like it that way.

No worries - it's a personal thing.  I just thought that if I'm
highlighting a lot of things in a message, I don't want *'s etc
everywhere.

> The formatting of complex scripts like this one are really messed
> up by the newsservers and especially when quoted in a followup.
>
> Better to put it on a web/ftp site wrapped in basic HTML tags, or
> uuencoded/mimencoded encoded tarballs.

When I'm happy enough with it I'll put it up on my website along
with some other macros.

>> algorithm doesn't seem to like the colons or something.
>>
>> Also if you followup a filtered message, it's the filtered
>> message that is quoted not the original, because the macro
>> replaces the article (not on the server, just viewed).  You can
>> turn off the filter by hitting <esc>-7 or whatever you assign
>> unregister_display_filters to.
>>
>> Hope the above makes sense.  If not, just ask.
>
> I'll certainly give it a good study, Troy. Thanks.
> Kind of strange mixing bash and slang, isn't it?

Yeah, but I don't know how to do it in slang.  If I could just
get more than this miserly 24hours in one day I'd be right.
Something like 36hours per day would do me.  I could work, then
come home and play with slang at night, and still sleep.
Somebody slow down the spinning of the Earth for me, would ya?

-- 
Troy Piggins
 ,-o
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 16:58:41 up 21 days,22:27,2 users,load average:0.00,0.00,0.00
Re: [slrn] very easy display filter enabling colour in message body
#191227
Author: Alan Connor
Date: Mon, 02 Oct 2006 08:04
49 lines
2747 bytes
On news.software.readers, in <20061002165841@usenet.piggo.com>,
"Troy Piggins" wrote:

> * Alan Connor wrote:
>
>> On news.software.readers, in
>> <20061002123732@usenet.piggo.com>, "Troy Piggins" wrote:
>>
>> Troy,
>>
>> A chastised Alan Connor tries again :-)
>
> No worries.
>
<snip>
>> The formatting of complex scripts like this one are really
>> messed up by the newsservers and especially when quoted in a
>> followup.
>>
>> Better to put it on a web/ftp site wrapped in basic HTML tags,
>> or uuencoded/mimencoded encoded tarballs.
>
> When I'm happy enough with it I'll put it up on my website
> along with some other macros.

My point is that I couldn't include the quoted script to comment
on because it was trashed by quoting. The lines became too long.

<snip>
>> I'll certainly give it a good study, Troy. Thanks.  Kind of
>> strange mixing bash and slang, isn't it?
>
> Yeah, but I don't know how to do it in slang.  If I could just
> get more than this miserly 24hours in one day I'd be right.
> Something like 36hours per day would do me.  I could work,
> then come home and play with slang at night, and still sleep.
> Somebody slow down the spinning of the Earth for me, would ya?

That's easy. You haven't been paying attention. The app is
even open source and free:

http://slow_the_earth.net/downloads

Alan

-- 
http://home.earthlink.net/~alanconnor/contact.html
http://home.earthlink.net/~alanconnor/cr.html
http://home.earthlink.net/~alanconnor/publickey.html
Re: [slrn] very easy display filter enabling colour in message body
#191228
Author: Adam Funk
Date: Mon, 02 Oct 2006 09:40
28 lines
2045 bytes
On 2006-10-02, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:

> HTML has no place on the Usenet. It belongs on websites. 

Absolutely!

> Neither
> does MIME/multi-part. PGP/GPG sigs are worthless on the Usenet
> (as used currently) for two reasons:
>
> 1. Unless you very carefully investigate them, they prove nothing   
>    but the fact that someone has a PGP/GPG keypair, which can
>    be produced by the dozens.
>
>    That same person could be posting under other aliases without
>    that sig. Or with other sigs.

If they were used widely, they would be useful for preventing forgery.
I'd be able to tell immediately if someone else forged your
From-header, for example.

You're right that I wouldn't be able to tie your key to a real-world
identity, but that isn't important anyway; I'd be able to tie your key
to a posting history and on-line persona (e.g. your areas of expertise
and opinions as shown in your previous writings).

(Of course nothing would stop the same real-world person from having
more than one on-line persona.)
Re: [slrn] very easy display filter enabling colour in message body
#191229
Author: Sam
Date: Mon, 02 Oct 2006 11:11
70 lines
4174 bytes
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_mimegpg-commodore.email-scan.com-31263-1159787504-0003
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Usenet Beavis writes:

> HTML has no place on the Usenet. That's because my crappy newsreader 
> can't handle it, and I'm a Beavis. I'm too stupid to know what to 
> do with PGP/GPG for two reasons:

I think I could come up with more than two.

> 1. I have no clue how PGP/GPG works.  Don't forget, I'm just a Beavis.
>    Public/private key cryptography is just too complicated for me to 
>    figure out, so instead of discussing this subject intelligent I'll
>    just flap my gums for a while, and hope nobody will notice.

Beavis, try finishing the "See Spot Run" book first, then you'll have a 
better chance of cracking this subject.

> 2. Almost no one has the software (installed and configured)
>    needed to do even the most basic (and useless) of 
>    authentication checks on the sigs.

Stupis Beavis.  Never heard of Mozilla Thunderbird.

> Almost always in lieu of content. And/or to deceive. To make me 
> have major kookfarts because I have no clue about it.

That, pretty much, explains every one of your posts.

> Pretty soon, if this keeps up, there are going to be 1000 mental 
> superiors on Usenet, pointing their fingers at me and laughing.

It's already happened.

> Everyone else will have left me to live in my own shit.

You misspelled "schitt", Beavis.

> Beavis
> 
> -- 
> http://www.geocities.com/suhatrasabib
> http://www.pearlgates.net/nanae/kooks/ac/
> http://tinyurl.com/23r3f




--=_mimegpg-commodore.email-scan.com-31263-1159787504-0003
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFIPPwx9p3GYHlUOIRArrcAJ9wA15bj/iGHJhnYWe+/sQnL/YNqQCcDnwf
nRJPRh9swI2QuDG8RSmswfE=
=Qg+2
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-31263-1159787504-0003--
Re: [slrn] very easy display filter enabling colour in message body
#191230
Author: Sam
Date: Mon, 02 Oct 2006 11:11
60 lines
3424 bytes
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_mimegpg-commodore.email-scan.com-31263-1159787510-0004
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Usenet Beavis writes:

> A chastised Usenet Beavis tries again :-)

*SLAP*

>> sed -e '
>> s/Troy Piggins/*&*/
>> # other substitutions can go here too!
>> # eg fix incorrect sig delimiters
>> s/^--$/-- /
>> '
>>
>> This changes my name to *Troy Piggins* in the message body.
> 
> That shows up as your name with asterisks on either side of it
> here in _my_ slrn. I like it that way.

Beavis is easy to please.  Spin a shiny ball, and it'll keep him fascinated 
for hours.

> The formatting of complex scripts like this one are really messed
> up by my crappy newsreader, and makes me have another kookfart.

And whose fault is that?

> Beavis
> 
> -- 
> http://www.geocities.com/suhatrasabib
> http://www.pearlgates.net/nanae/kooks/ac/
> http://tinyurl.com/23r3f




--=_mimegpg-commodore.email-scan.com-31263-1159787510-0004
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFIPP2x9p3GYHlUOIRAnriAJ40MtXG03wBwHe6rN1NvpPJVASVKwCdGnDk
kAiQ+4VkKmhvuSFivfT7Fg8=
=r046
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-31263-1159787510-0004--
[OT] GPG/PGP Sigs (was: Re: [slrn] very easy dis<snip>)
#191233
Author: Alan Connor
Date: Mon, 02 Oct 2006 11:15
96 lines
4488 bytes
On news.software.readers, in <fd37v3-pci.ln1@news.ducksburg.com>,
"Adam Funk" wrote:

Hi Adam,

> On 2006-10-02, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:
>
>> HTML has no place on the Usenet. It belongs on websites.
>
> Absolutely!
>
>> Neither does MIME/multi-part. PGP/GPG sigs are worthless on
>> the Usenet (as used currently) for two reasons:
>>
>> 1. Unless you very carefully investigate them, they prove
>> nothing but the fact that someone has a PGP/GPG keypair, which
>> can be produced by the dozens.
>>
>>    That same person could be posting under other aliases
>>    without that sig. Or with other sigs.
>
> If they were used widely, they would be useful for preventing
> forgery.  I'd be able to tell immediately if someone else
> forged your From-header, for example.

Only if my public key was on your ring. And you couldn't tell
if another alias was me without the sig...

My public key is on my website but not on a keysserver. I
couldn't find one that I could upload my key to.

So you'd have to bring it down using http and then import
it locally. Pain in the butt.

Maybe you know a server I could access...

> You're right that I wouldn't be able to tie your key to a
> real-world identity, but that isn't important anyway; I'd be
> able to tie your key to a posting history and on-line persona
> (e.g. your areas of expertise and opinions as shown in your
> previous writings).

That's right. 

<snip>

But it still isn't quite enough. Anyone can make keypairs by
the dozens. Just having a valid sig for an alias wouldn't mean
you'd ever see that alias/sig again. You could still be harassed
by the trolls. They could still wreck a thread or a newsgroup.

HOWEVER 

If there was a special key, held in trust by an adminstrator
(or a team of them...) whose signature on another PGP/GPG key
would identify the owner as someone who had passed a basic troll
screening process, then you could limit your downloads to those
posts only and be reasonably sure that the person wasn't a Usenet
vermin.

If you didn't like what they had to say, you could killfile them.
And they couldn't evade your killfile without really knocking
themselves out to get another 'special key'.

The screening would be much like that used by mailing list
managers.

You'd apply by sending a signed mail with your Usenet alias in
it to the administrators. They'd check the sig (in the most
basic way) and the history of the alias. If it was obviously a
sockpuppet created for the purpose, the application would be
denied. You'd also have to post with that alias on alt.test to
prove it really was yours.

The mail would also be subjected to basic spam/cyberstalker
tests to see if the person was 'playing games'.

If everything was okay, the administrators would reply to the
mail, asking the applicant to paste a string from the body to the
subject line and return it.

If that worked, then the administrator(s) would sign the
applicant's key.

----------------

I'm not really that good with GPG, Adam. Is the above sound?

Troy?

Alan

-- 
http://home.earthlink.net/~alanconnor/contact.html
http://home.earthlink.net/~alanconnor/cr.html
http://home.earthlink.net/~alanconnor/publickey.html
Re: [OT] GPG/PGP Sigs (was: Re: [slrn] very easy dis<snip>)
#191240
Author: Adam Funk
Date: Mon, 02 Oct 2006 14:35
38 lines
2258 bytes
On 2006-10-02, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:

> My public key is on my website but not on a keysserver. I
> couldn't find one that I could upload my key to.
>
> So you'd have to bring it down using http and then import
> it locally. Pain in the butt.
>
> Maybe you know a server I could access...

If you're using a fairly recent GnuPG, put the line

keyserver hkp://subkeys.pgp.net

in ~/.gnupg/gpg.conf and use this command (replace ABCD0123 with your
key-ID):

gpg --send-key  ABCD0123


>> You're right that I wouldn't be able to tie your key to a
>> real-world identity, but that isn't important anyway; I'd be
>> able to tie your key to a posting history and on-line persona
>> (e.g. your areas of expertise and opinions as shown in your
>> previous writings).
>
> That's right. 
>
><snip>
>
> But it still isn't quite enough. Anyone can make keypairs by
> the dozens. Just having a valid sig for an alias wouldn't mean
> you'd ever see that alias/sig again. You could still be harassed
> by the trolls. They could still wreck a thread or a newsgroup.

There's a limit to what it can do: one person could still pretend to
be several BUT someone else couldn't pretend to be you (without your
consent, of course).
Re: [OT] GPG/PGP Sigs (was: Re: [slrn] very easy dis<snip>)
#191239
Author: Adam Funk
Date: Mon, 02 Oct 2006 14:36
50 lines
3157 bytes
On 2006-10-02, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:

> HOWEVER 
>
> If there was a special key, held in trust by an adminstrator
> (or a team of them...) whose signature on another PGP/GPG key
> would identify the owner as someone who had passed a basic troll
> screening process, then you could limit your downloads to those
> posts only and be reasonably sure that the person wasn't a Usenet
> vermin.
>
> If you didn't like what they had to say, you could killfile them.
> And they couldn't evade your killfile without really knocking
> themselves out to get another 'special key'.
>
> The screening would be much like that used by mailing list
> managers.
>
> You'd apply by sending a signed mail with your Usenet alias in
> it to the administrators. They'd check the sig (in the most
> basic way) and the history of the alias. If it was obviously a
> sockpuppet created for the purpose, the application would be
> denied. You'd also have to post with that alias on alt.test to
> prove it really was yours.
>
> The mail would also be subjected to basic spam/cyberstalker
> tests to see if the person was 'playing games'.
>
> If everything was okay, the administrators would reply to the
> mail, asking the applicant to paste a string from the body to the
> subject line and return it.
>
> If that worked, then the administrator(s) would sign the
> applicant's key.
>
> ----------------
>
> I'm not really that good with GPG, Adam. Is the above sound?

What you're suggesting is *technically* valid but it would only work
if you and I and a zillion other people all considered the same set of
authorities to be acceptable for the purpose.

The way the web of trust is supposed to work is that I sign the keys
of people I know and trust.  One of them signs a colleague's key, who
signs ... who signs your friend's key, who signs yours.  I download
your key with its signatures, then fetch any intermediate keys in the
chain that I don't already have, and GPG tells me that there's a valid
chain of signatures.  I think one of the principles is to eliminate
the need for central authorities.
Re: [OT] GPG/PGP Sigs (was: Re: [slrn] very easy dis<snip>)
#191247
Author: Alan Connor
Date: Mon, 02 Oct 2006 19:19
86 lines
4778 bytes
On news.software.readers, in <nnk7v3-mon.ln1@news.ducksburg.com>,
"Adam Funk" wrote:

> On 2006-10-02, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:
>
>> HOWEVER
>>
>> If there was a special key, held in trust by an adminstrator
>> (or a team of them...) whose signature on another PGP/GPG key
>> would identify the owner as someone who had passed a basic
>> troll screening process, then you could limit your downloads
>> to those posts only and be reasonably sure that the person
>> wasn't a Usenet vermin.
>>
>> If you didn't like what they had to say, you could killfile
>> them.  And they couldn't evade your killfile without really
>> knocking themselves out to get another 'special key'.
>>
>> The screening would be much like that used by mailing list
>> managers.
>>
>> You'd apply by sending a signed mail with your Usenet alias in
>> it to the administrators. They'd check the sig (in the most
>> basic way) and the history of the alias. If it was obviously a
>> sockpuppet created for the purpose, the application would be
>> denied. You'd also have to post with that alias on alt.test to
>> prove it really was yours.
>>
>> The mail would also be subjected to basic spam/cyberstalker
>> tests to see if the person was 'playing games'.
>>
>> If everything was okay, the administrators would reply to the
>> mail, asking the applicant to paste a string from the body to
>> the subject line and return it.
>>
>> If that worked, then the administrator(s) would sign the
>> applicant's key.
>>
>> ----------------
>>
>> I'm not really that good with GPG, Adam. Is the above sound?
>
> What you're suggesting is *technically* valid but it would only
> work if you and I and a zillion other people all considered the
> same set of authorities to be acceptable for the purpose.
>
> The way the web of trust is supposed to work is that I sign
> the keys of people I know and trust.  One of them signs a
> colleague's key, who signs ... who signs your friend's key,
> who signs yours.  I download your key with its signatures,
> then fetch any intermediate keys in the chain that I don't
> already have, and GPG tells me that there's a valid chain of
> signatures.  I think one of the principles is to eliminate the
> need for central authorities.

And what do you get instead? A bunch of little inbred groups who
won't sign someone's key because they don't like their political
opinions, etc. 

It's one of the reasons GPG/PGP hasn't caught on. 

There aren't any standards but the whims of keyholders in a
little group of pals. So the the signatures are meaningless.

I'd rather know that someone had passed a screening test at a
central 'authority' than they were good asskissers or parted
their hair the same way everyone else in a ring of 'trust' did.

Anyway, I'm not talking about key validation at the level for
which GPG/PGP was created. Just the basic level for the Usenet
we've been discussing.

The central 'authority' wouldn't require any identification at
all and would never vouch for someone's key in a legal sense. It
would just mean they had passed a basic troll/spammer screening
test (like most mailing lists use) and were the same person who
posted with that alias the last time.

Thanks for the info in the other post, Adam.

Alan

-- 
http://home.earthlink.net/~alanconnor/contact.html
http://home.earthlink.net/~alanconnor/cr.html
http://home.earthlink.net/~alanconnor/publickey.html
Re: [OT] GPG/PGP Sigs (was: Re: [slrn] very easy dis<snip>)
#191258
Author: Alan Connor
Date: Mon, 02 Oct 2006 21:23
38 lines
2300 bytes
On news.software.readers, in <kmk7v3-mon.ln1@news.ducksburg.com>, "Adam Funk" wrote:
>
>
> On 2006-10-02, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:
>
>> My public key is on my website but not on a keysserver. I
>> couldn't find one that I could upload my key to.
>>
>> So you'd have to bring it down using http and then import
>> it locally. Pain in the butt.
>>
>> Maybe you know a server I could access...
>
> If you're using a fairly recent GnuPG, put the line
>
> keyserver hkp://subkeys.pgp.net
>
> in ~/.gnupg/gpg.conf and use this command (replace ABCD0123 with your
> key-ID):
>
> gpg --send-key  ABCD0123
>

Adam,

No mention of gpg.conf in my GPG manpage, so:

$ gpg --keyserver hkp://subkeys.pgp.net  --send-keys <Key ID> 
gpg: can't connect to `hkp://subkeys.pgp.net': Operation not permitted

?????????

Alan

-- 
http://home.earthlink.net/~alanconnor/contact.html
http://home.earthlink.net/~alanconnor/cr.html
http://home.earthlink.net/~alanconnor/publickey.html
Re: [OT] GPG/PGP Sigs (was: Re: [slrn] very easy dis<snip>)
#191257
Author: Sam
Date: Mon, 02 Oct 2006 22:40
80 lines
4373 bytes
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_mimegpg-commodore.email-scan.com-5397-1159828817-0004
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Usenet Beavis writes:

> On news.software.readers, in <fd37v3-pci.ln1@news.ducksburg.com>,
> "Adam Funk" wrote:
> 
> Hi Adam,
> 
>> On 2006-10-02, Usenet Beavis <i3x9mdw@j9n35c.invalid> wrote:
>>
>>>    That same person could be posting under other aliases
>>>    without that sig. Or with other sigs.
>>
>> If they were used widely, they would be useful for preventing
>> forgery.  I'd be able to tell immediately if someone else
>> forged your From-header, for example.
> 
> Only if my public key was on your ring. Whatever that means. I have no 
> clue as to why PGP is and how it works, so I think I'll just blather along 
> by stringing random words together, and hope that nobody will notice.

It didn't work, Beavis.

> But it still isn't quite enough. Anyone can make keypairs by
> the dozens, but I'm such a Beavis that I can't make even one.

You're also a Beavis for several other reasons.

> HOWEVER 
> 
> Instead of learning PGP, I think I'll pull some cockamamie scheme out of my 
> ass and claim it's the greatest thing since sliced bread.  And, I'm too 
> stupid to know that I've merely reinvented -- and badly -- X.509 
> authentication and I'm just too clueless to figure out why there's much 
> more mail/news software that groks PGP than there is that groks X.509 
> certs.

What you said.
> ----------------
> 
> I'm not really that good with GPG, Adam.

Understatement of the century.


>                                           Is the above sound?

Ask your favorite sheep, Beavis.

> Beavis
> 
> -- 
> http://www.geocities.com/suhatrasabib
> http://www.pearlgates.net/nanae/kooks/ac/
> http://tinyurl.com/23r3f


--=_mimegpg-commodore.email-scan.com-5397-1159828817-0004
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFIZVRx9p3GYHlUOIRAudxAJ4qRvWU6V80m4RI3wFu39WFcGv5wACeLoVU
GYuT1FjyvaEhcO8xlv+0s6E=
=RSJ1
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-5397-1159828817-0004--
Re: [OT] GPG/PGP Sigs (was: Re: [slrn] very easy dis<snip>)
#191256
Author: Sam
Date: Mon, 02 Oct 2006 22:40
45 lines
3262 bytes
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_mimegpg-commodore.email-scan.com-5397-1159828838-0005
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Usenet Beavis writes:

> $ gpg --keyserver hkp://subkeys.pgp.net  --send-keys <Key ID> 
> gpg: can't connect to `hkp://subkeys.pgp.net': Operation not permitted
> 
> ?????????

Beavis, you're not allowed to use PGP.  Everyone who uses PGP must 
succesfully pass a simple IQ test, and you failed.  You are forbidden from 
trying to do anything with PGP.

> Beavis
> 
> -- 
> http://www.geocities.com/suhatrasabib
> http://www.pearlgates.net/nanae/kooks/ac/
> http://tinyurl.com/23r3f




--=_mimegpg-commodore.email-scan.com-5397-1159828838-0005
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFIZVmx9p3GYHlUOIRAl9FAJ9AmUYImQPagOv8eknfwV+Lh1Bi3ACfdOT0
MVXv84p67yf3UeRVHXQP+BI=
=gikd
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-5397-1159828838-0005--
Re: [OT] GPG/PGP Sigs (was: Re: [slrn] very easy dis<snip>)
#191259
Author: Sam
Date: Mon, 02 Oct 2006 22:40
89 lines
4622 bytes
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_mimegpg-commodore.email-scan.com-5397-1159828858-0006
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Usenet Beavis writes:

> On news.software.readers, in <nnk7v3-mon.ln1@news.ducksburg.com>,
> "Adam Funk" wrote:
> 
>> The way the web of trust is supposed to work is that I sign
>> the keys of people I know and trust.  One of them signs a
>> colleague's key, who signs ... who signs your friend's key,
>> who signs yours.  I download your key with its signatures,
>> then fetch any intermediate keys in the chain that I don't
>> already have, and GPG tells me that there's a valid chain of
>> signatures.  I think one of the principles is to eliminate the
>> need for central authorities.
> 
> And what do you get instead? A bunch of mental superiors who enjoy 
> smacking my bitch up at every opportunity.

*SMACK*

> It's one of the reasons GPG/PGP hasn't caught on. 

Stupid Beavis.  GnuPG gets installed, by default, by every major Linux 
distribution, and all of them use PGP to distribute updates and patches.

> There aren't any standards but the whims of keyholders in a
> little group of pals. So the the signatures are meaningless to me,
> because I was dropped on my head as a child.

Right.

> I'd rather know that someone had passed a screening test at a
> central 'authority'

You first, Beavis.

*SLAP*

> Anyway, I'm not talking about key validation at the level for
> which GPG/PGP was created. In fact, I have no clue whatsoever
> what I'm talking about.

Right.

> The central 'authority' wouldn't require any identification at
> all and would never vouch for someone's key in a legal sense.

And, according to Beavis, that would make this a more trustworthy approach 
than the existing situation.

Stupid Beavis.

> Thanks for pointing your fingers at me, and laughing.

You're welcome.

> Beavis
> 
> -- 
> http://www.geocities.com/suhatrasabib
> http://www.pearlgates.net/nanae/kooks/ac/
> http://tinyurl.com/23r3f




--=_mimegpg-commodore.email-scan.com-5397-1159828858-0006
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFIZV6x9p3GYHlUOIRAreoAJ4wB99GBkOdQSFPcbiBzpFwRQ1u/gCfQJKR
1YPaAKl8ya9BYzK+Pt2p8hU=
=hSMW
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-5397-1159828858-0006--
Re: [OT] GPG/PGP Sigs
#191270
Author: Adam Funk
Date: Tue, 03 Oct 2006 09:03
10 lines
1227 bytes
On 2006-10-02, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:

> No mention of gpg.conf in my GPG manpage, so:
>
> $ gpg --keyserver hkp://subkeys.pgp.net  --send-keys <Key ID> 
> gpg: can't connect to `hkp://subkeys.pgp.net': Operation not permitted
>
> ?????????

What's the output of `gpg --version`?
Re: [OT] GPG/PGP Sigs
#191263
Author: Alan Connor
Date: Tue, 03 Oct 2006 10:29
129 lines
5671 bytes
On news.software.readers, in <hkl9v3-cfc.ln1@news.ducksburg.com>,
"Adam Funk" wrote:

Hi Adam,

> On 2006-10-02, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:
>
>> No mention of gpg.conf in my GPG manpage, so:
>>
>> $ gpg --keyserver hkp://subkeys.pgp.net --send-keys <Key ID>
>> gpg: can't connect to `hkp://subkeys.pgp.net': Operation not
>> permitted
>>
>> ?????????
>
> What's the output of `gpg --version`?

$ gpg --version
gpg (GnuPG) 1.0.6
Copyright (C) 2001 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

Home: ~/.gnupg
Supported algorithms:
Cipher: 3DES, CAST5, BLOWFISH, RIJNDAEL, RIJNDAEL192, RIJNDAEL256, TWOFISH
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA, ELG
Hash: MD5, SHA1, RIPEMD160

--------------------

$ gpg -v -v  --keyserver hkp://subkeys.pgp.net  --send-keys <deleted>
gpg: loaded digest 2
:public key packet:
        version 4, algo 17, created <deleted>, expires 0
        pkey[0]: [1024 bits]
        pkey[1]: [160 bits]
        pkey[2]: [1024 bits]
        pkey[3]: [1024 bits]
:user ID packet: "<deleted> <deleted> (<deleted>) <deleted>@<deleted>.<deleted>>"
:signature packet: algo 17, keyid <deleted>
        version 4, created <deleted>, md5len 0, sigclass 13
        digest algo 2, begin of digest bd 42
        hashed subpkt 2 len 5 (sig created <deleted>)
        hashed subpkt 11 len 5 (pref-sym-algos: 7 10 3 4)
        hashed subpkt 21 len 3 (pref-hash-algos: 3 2)
        hashed subpkt 22 len 3 (pref-zip-algos: 2 1)
        hashed subpkt 23 len 2 (key server preferences)
        subpkt 16 len 9 (issuer key ID <deleted>)
        data: [160 bits]
        data: [160 bits]
:public sub key packet:
        version 4, algo 16, created <deleted>, expires 0
        pkey[0]: [1024 bits]
        pkey[1]: [4 bits]
        pkey[2]: [1024 bits]
:signature packet: algo 17, keyid <deleted>
        version 4, created <deleted> md5len 0, sigclass 18
        digest algo 2, begin of digest 83 fa
        hashed subpkt 2 len 5 (sig created <deleted>)
        subpkt 16 len 9 (issuer key ID <deleted>)
        data: [159 bits]
        data: [159 bits]
gpg: can't connect to `hkp://subkeys.pgp.net': Resource temporarily unavailable

-------------

That's not the same error message. 

$ host subkeys.pgp.net
subkeys.pgp.net         A       86.59.21.34
subkeys.pgp.net         A       195.113.19.83
subkeys.pgp.net         A       212.247.204.136
subkeys.pgp.net         A       213.239.206.174
subkeys.pgp.net         A       213.239.212.133

A non-intrusive port scan of subkeys.pgp.net:

$ nmap -v -P0 86.59.21.34

Starting nmap V. 2.54BETA30 ( www.insecure.org/nmap/ )
No tcp,udp, or ICMP scantype specified, assuming vanilla tcp connect() scan. Use -sP if you really don't want to portscan (and just want to see what hosts are up).
Host asteria.debian.or.at (86.59.21.34) appears to be up ... good.
Initiating Connect() Scan against asteria.debian.or.at (86.59.21.34)
Adding open port 11371/tcp
Adding open port 26/tcp
Adding open port 6667/tcp
Adding open port 873/tcp
Adding open port 993/tcp
Adding open port 587/tcp
Adding open port 53/tcp
Adding open port 487/tcp
Adding open port 443/tcp
Adding open port 80/tcp
Adding open port 7000/tcp
Adding open port 6668/tcp
Adding open port 465/tcp
Adding open port 6969/tcp
Adding open port 113/tcp
The Connect() Scan took 59 seconds to scan 1549 ports.
Interesting ports on asteria.debian.or.at (86.59.21.34):
(The 1531 ports scanned but not shown below are in state: closed)
Port       State       Service
25/tcp     filtered    smtp
26/tcp     open        unknown
53/tcp     open        domain
80/tcp     open        http
113/tcp    open        auth
443/tcp    open        https
465/tcp    open        smtps
487/tcp    open        saft
587/tcp    open        submission
623/tcp    filtered    unknown
664/tcp    filtered    unknown
873/tcp    open        rsync
993/tcp    open        imaps
6667/tcp   open        irc
6668/tcp   open        irc
6969/tcp   open        acmsoda
7000/tcp   open        afs3-fileserver
11371/tcp  open        pksd

Alan

-- 
http://home.earthlink.net/~alanconnor/contact.html
http://home.earthlink.net/~alanconnor/cr.html
http://home.earthlink.net/~alanconnor/publickey.html
Re: [OT] GPG/PGP Sigs
#191264
Author: Adam Funk
Date: Tue, 03 Oct 2006 10:47
14 lines
1368 bytes
On 2006-10-03, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:

>> What's the output of `gpg --version`?
>
> $ gpg --version
> gpg (GnuPG) 1.0.6

You might want to upgrade:

   "The current stable version is 1.4.5."
   http://www.gnupg.org/(en)/index.html

I believe the keyserver-related options and the name of the config
file have changed since 1.0.x.
Re: [OT] GPG/PGP Sigs
#191265
Author: Alan Connor
Date: Tue, 03 Oct 2006 11:56
47 lines
2592 bytes
On news.software.readers, in <9mr9v3-rie.ln1@news.ducksburg.com>,
"Adam Funk" wrote:

> On 2006-10-03, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:
>
>>> What's the output of `gpg --version`?
>>
>> $ gpg --version gpg (GnuPG) 1.0.6
>
> You might want to upgrade:
>
>    "The current stable version is 1.4.5."
>    http://www.gnupg.org/(en)/index.html
>
> I believe the keyserver-related options and the name of the
> config file have changed since 1.0.x.

Okay. 1.4.1-1 is the latest Debian Stable....Done.
Lot of changes! 

I transferred the old options (default except for yours) to the
new file, gpg.conf:

agaforce-v3-sigs
escape-from-lines
lock-once
honor-http-proxy
keyserver hkp://subkeys.pgp.net

/quote 

$ gpg -v -v  --send-keys <deleted>
gpg: NOTE: old default options file `/home/<deleted>/.gnupg/options' ignored
gpg: /home/<deleted>/.gnupg/gpg.conf:4: deprecated option "honor-http-proxy"
gpg: please use "keyserver-options http-proxy" instead
gpg: sending key <deleted> to hkp server subkeys.pgp.net

Looks like a hit! I've changed that option in the config file.

Thanks a lot, Adam,

Alan

-- 
http://home.earthlink.net/~alanconnor/contact.html
http://home.earthlink.net/~alanconnor/cr.html
http://home.earthlink.net/~alanconnor/publickey.html
Re: [OT] GPG/PGP Sigs
#191266
Author: Adam Funk
Date: Tue, 03 Oct 2006 15:07
12 lines
1506 bytes
On 2006-10-03, Alan Connor <i3x9mdw@j9n35c.invalid> wrote:

>> I believe the keyserver-related options and the name of the
>> config file have changed since 1.0.x.
>
> Okay. 1.4.1-1 is the latest Debian Stable....Done.
> Lot of changes! 
...
> Looks like a hit! I've changed that option in the config file.

Glad that worked.  It's been a while since I used 1.0.x and I couldn't
remember what the old options were.
[slrn] spamassassin works too (Was: [slrn] very easy display filter enabling colour in message body)
#191275
Author: Troy Piggins
Date: Tue, 03 Oct 2006 23:57
43 lines
2243 bytes
* Troy Piggins wrote:
> I've been using a demime and t-prot display filter for some time
> to tidy up MIME pgp signed and html messages, and trimming long
> quote blocks, trimming overly long sigs etc.  All good.
>
> I just recently started playing with my own display filter to
> take it all one step further to fix some things like improper sig
> delimiters etc using a sed script.  I got that working and
> thought I'd share.  It's very customisable.

Just for fun I have just tried piping the message through
spamassassin (spamc).  It works!

#!/bin/bash

spamc \
| sed -e '

# fix incorrect sig delimiters
s/^--$/-- /

# put a blank line before sig delimiters if not one there
#/^-- /{g;s/^$/-- /;t;s/.*/\n-- /};h

# email addresses
s/[$a-zA-Z0-9.-]*@[a-zA-Z0-9.-]*/_&_/g

'

I can see message spam scores with this in my ~/.slrnrc:

visible_headers "From:,Subject:,Newsgroups:,Date:,Message-ID:,X-Spam-Level:"

I know spamassassin isn't for usenet, but message formats are so
similar it seems to do ok at detecting usenet spam.

[snip]

-- 
Troy Piggins
 ,-o
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 09:48:37 up  2:43,2 users,load average:0.13,0.05,0.01
Re: [slrn] spamassassin works too (Was: [slrn] very easy display filter enabling colour in message body)
#191293
Author: Whiskers
Date: Wed, 04 Oct 2006 11:38
48 lines
2682 bytes
On 2006-10-03, Troy Piggins <usenet-0610@piggo.com> wrote:
> * Troy Piggins wrote:
>> I've been using a demime and t-prot display filter for some time
>> to tidy up MIME pgp signed and html messages, and trimming long
>> quote blocks, trimming overly long sigs etc.  All good.
>>
>> I just recently started playing with my own display filter to
>> take it all one step further to fix some things like improper sig
>> delimiters etc using a sed script.  I got that working and
>> thought I'd share.  It's very customisable.
>
> Just for fun I have just tried piping the message through
> spamassassin (spamc).  It works!
>
> #!/bin/bash
>
> spamc \
> | sed -e '
>
> # fix incorrect sig delimiters
> s/^--$/-- /
>
> # put a blank line before sig delimiters if not one there
> #/^-- /{g;s/^$/-- /;t;s/.*/\n-- /};h
>
> # email addresses
> s/[$a-zA-Z0-9.-]*@[a-zA-Z0-9.-]*/_&_/g
>
> '
>
> I can see message spam scores with this in my ~/.slrnrc:
>
> visible_headers "From:,Subject:,Newsgroups:,Date:,Message-ID:,X-Spam-Level:"

Presumably you could score on it too, albeit 'expensively'.

> I know spamassassin isn't for usenet, but message formats are so
> similar it seems to do ok at detecting usenet spam.
>
> [snip]

Could be particularly interesting for those who've persuaded slrn to work 
as an email client.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] spamassassin works too (Was: [slrn] very easy display filter enabling colour in message body)
#191295
Author: Troy Piggins
Date: Wed, 04 Oct 2006 13:22
43 lines
2503 bytes
* Whiskers wrote:
> On 2006-10-03, Troy Piggins <usenet-0610@piggo.com> wrote:
> [---=| Quote block shrinked by t-prot: 22 lines snipped |=---]
>> #/^-- /{g;s/^$/-- /;t;s/.*/\n-- /};h
>>
>> # email addresses
>> s/[$a-zA-Z0-9.-]*_@_[a-zA-Z0-9.-]*/_&_/g
>>
>> '
>>
>> I can see message spam scores with this in my ~/.slrnrc:
>>
>> visible_headers "From:,Subject:,Newsgroups:,Date:,Message-ID:,X-Spam-Level:"
>
> Presumably you could score on it too, albeit 'expensively'.

You could, and it would be expensive.  In fact I just turned it
off, because it's very slow with razor/pyzor etc enabled in
spamassassin.  Much faster without those on.

I wouldn't score on it, I was thinking you could macro it that if
it's "spam" the message would auto-delete/kill if you tried to
open it.

>> I know spamassassin isn't for usenet, but message formats are so
>> similar it seems to do ok at detecting usenet spam.
>>
>> [snip]
>
> Could be particularly interesting for those who've persuaded slrn to work 
> as an email client.

I am not trying to do that - I can't improve on mutt and wouldn't
want to try.  Purely seeing how much I can do with display filter
for newsreading.  And having some fun :)

Thanks for you thoughts.

-- 
Troy Piggins
 ,-o
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 23:18:53 up 16:14,2 users,load average:0.03,0.04,0.01
Re: [slrn] spamassassin works too (Was: [slrn] very easy display filter enabling colour in message body)
#191301
Author: Whiskers
Date: Wed, 04 Oct 2006 15:29
45 lines
2692 bytes
On 2006-10-04, Troy Piggins <usenet-0610@piggo.com> wrote:
> * Whiskers wrote:
>> On 2006-10-03, Troy Piggins <usenet-0610@piggo.com> wrote:

snip

>>> visible_headers "From:,Subject:,Newsgroups:,Date:,Message-ID:,X-Spam-Level:"
>>
>> Presumably you could score on it too, albeit 'expensively'.
>
> You could, and it would be expensive.  In fact I just turned it
> off, because it's very slow with razor/pyzor etc enabled in
> spamassassin.  Much faster without those on.

A clever scripter could probably get the MID of the offending article 
added to slrn's scorefile and then re-score the group ... 

> I wouldn't score on it, I was thinking you could macro it that if
> it's "spam" the message would auto-delete/kill if you tried to
> open it.

I like it; suicidal spam!

>>> I know spamassassin isn't for usenet, but message formats are so
>>> similar it seems to do ok at detecting usenet spam.
>>>
>>> [snip]
>>
>> Could be particularly interesting for those who've persuaded slrn to work 
>> as an email client.
>
> I am not trying to do that - I can't improve on mutt and wouldn't
> want to try.  Purely seeing how much I can do with display filter
> for newsreading.  And having some fun :)

That's what it's all for  :))

> Thanks for you thoughts.

<G>

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn] spamassassin works too (Was: [slrn] very easy display filter enabling colour in message body)
#191438
Author: Allodoxaphobia
Date: Sat, 07 Oct 2006 14:31
14 lines
1487 bytes
On Wed, 4 Oct 2006 12:38:06 +0100, Whiskers wrote:
>> [snip]

>Could be particularly interesting for those who've persuaded slrn to 
>work as an email client.

Almost as revolting as the thought of hacking pine into being a usenet 
client.

Jonesy
-- 
  Marvin L Jones    | jonz          | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
    *** Killfiling google posts: <http//jonz.net/ng.htm>
Re: [slrn] spamassassin works too (Was: [slrn] very easy display filter enabling colour in message body)
#191463
Author: Marshall Price
Date: Sun, 08 Oct 2006 09:52
20 lines
1884 bytes
Allodoxaphobia wrote:
> On Wed, 4 Oct 2006 12:38:06 +0100, Whiskers wrote:
> 
>>>[snip]
> 
> 
>>Could be particularly interesting for those who've persuaded slrn to 
>>work as an email client.
> 
> 
> Almost as revolting as the thought of hacking pine into being a usenet 
> client.
> 
> Jonesy

So Mutt's better as a console-type newsreader?  Including under Windows?

-- 
Marshall Price of Miami
Known to Yahoo as d021317c
Re: [slrn] spamassassin works too (Was: [slrn] very easy display filter enabling colour in message body)
#191467
Author: Troy Piggins
Date: Sun, 08 Oct 2006 13:25
35 lines
2393 bytes
* Marshall Price wrote:
> Allodoxaphobia wrote:
>> On Wed, 4 Oct 2006 12:38:06 +0100, Whiskers wrote:
>> 
>>>>[snip]
>> 
>>>Could be particularly interesting for those who've persuaded slrn to 
>>>work as an email client.
>> 
>> Almost as revolting as the thought of hacking pine into being a usenet 
>> client.
>> 
>> Jonesy
>
> So Mutt's better as a console-type newsreader?  Including under Windows?

I don't know if you're being sarcastic or not.  Mutt is an
awesome mail user agent - the best I've used and still use.  Slrn
is my newsreader of choice.  I've tried mutt with nntp patch, and
also mutt-ng and in my opinion they don't perform as well as
slrn.  I subscribe to the train of thought of using the right
tools for the job.

The reason for my original post was not to imply that you could
make slrn work as an email client.  It was merely about a display
filter and what I was mucking around doing with it.

The spamassassin thing I was doing was just to see if it worked.
It did.  That's all.

-- 
Troy Piggins
 ,-o
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 23:20:05 up 4 days,16:15,2 users,load average:0.08,0.03,0.00
Re: very easy display filter enabling colour in message body
#191535
Author: 48umofa02
Date: Tue, 10 Oct 2006 23:37
14 lines
1837 bytes
Troy Piggins wrote:
> * Alan Connor wrote:
> > On news.software.readers, in <_20061002123732@usenet.piggo.com_>,
> > "Troy Piggins" wrote:
> >
> > Troy,
>
> G'day Alan.  Not sure why you crossposted, my post had nothing to
> do with nanae.  You didn't read all of it apparently.

Because Beavis is a known netK00K who posts his k00kfarts regularly to
a group who has absolutely no interest in his crap?
Re: very easy display filter enabling colour in message body
#191536
Author: Troy Piggins
Date: Wed, 11 Oct 2006 00:04
24 lines
1889 bytes
* 48umofa02@sneakemail.com wrote:
>
> Troy Piggins wrote:
>> * Alan Connor wrote:
>> > On news.software.readers, in <20061002123732@usenet.piggo.com>,
>> > "Troy Piggins" wrote:
>> >
>> > Troy,
>>
>> G'day Alan.  Not sure why you crossposted, my post had nothing to
>> do with nanae.  You didn't read all of it apparently.
>
> Because AC is a known netK00K who posts his k00kfarts regularly to
> a group who has absolutely no interest in his crap?

Does GG have scoring/killfile capabilities?  If so, use it.  If
not, get a real newsreader that does.  That way you can customise
your usenet experience to suit.

-- 
Troy Piggins
 ,-o
o   ) Ubuntu linux 6.06 http://ubuntu.com  RLU#415538 http://counter.li.org
 `-o  uptime: 10:02:29 up 7 days,2:57,2 users,load average:0.03,0.05,0.01
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