🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #191293

Re: [slrn] spamassassin works too (Was: [slrn] very easy display filter enabling colour in message body)

#191293
From: 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 
-- ~~~~~~~~~~
Technical Details
Message-ID: <u1jcv3-8i4.ln1@ID-107770.user.individual.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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <20061002123732@usenet.piggo.com> <20061004094837@usenet.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <u1jcv3-8i4.ln1@ID-107770.user.individual.net>
Subject: Re: [slrn] spamassassin works too (Was: [slrn] very easy display filter enabling colour in message body)
Date: Wed, 4 Oct 2006 12:38:06 +0100
From: Whiskers <catwheezel@operamail.com>
References: <20061002123732@usenet.piggo.com> <20061004094837@usenet.piggo.com>
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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: is an alien concept
Lines: 48
X-Trace: individual.net jV1ar5X6Gja8Jzi5HZwKbQJuuL1MGwnjwtUexDYRhK3w+MzUnT
X-Orig-Path: ID-107770.user.individual.net!news
X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux";
 aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer];
 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p&
 g^8<z5>HA
User-Agent: slrn/0.9.8.1 (Linux)