🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #195680

Re: [Xnews] RegEx match for empty From: ?

#195680
From: Mike Dee
Date: Sat, 17 Feb 2007 01:55
26 lines
2103 bytes
Pepi <pepi@egg.nog> wrote in
news:Xns98D9C14BC9831psf37r351740306k76fs@216.196.109.144: 

> Headers tell me From: contains "" <> but it seems those characters
> can't be used. Any ideas on how to match an empty From: string and
> nothing else? I.e. no name and no email showing, an this is what I
> want to match.

If you can't score on non alphanumeric characters, you can employ
the regex escape character "\".  For example, escaping the
characters \"\" and \<\> they get treated as the literal characters
"" and <> in scoring. 

However to match or kill anyone using spaces or non characters for
their "From:" header, another approach to employ could be (and
shamelessly adapted from "scoring.txt" examples in Xnews folder): 

[^group\.to\.score\.on$]
      Score: -9999
      ~From: .*[a-z]

Which kills any post not containing a letter from a/A to z/Z in the 
"From" header (use a higher score to see its effectiveness). 

-- 
dee
Technical Details
Message-ID: <Xns98DA83854D236emteedee@194.177.96.26>
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!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!aioe.org!not-for-mail
References: <Xns98D9C14BC9831psf37r351740306k76fs@216.196.109.144>

Show Full Headers
Complete Article Headers
Message-ID: <Xns98DA83854D236emteedee@194.177.96.26>
Subject: Re: [Xnews] RegEx match for empty From: ?
Date: Sat, 17 Feb 2007 01:55:43 +0000
From: Mike Dee <mikedee@emteedee.invalid>
References: <Xns98D9C14BC9831psf37r351740306k76fs@216.196.109.144>
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!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!aioe.org!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 26
NNTP-Posting-Host: LyV5kbJlpUEzvIoDmGyNaQ.user.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse@aioe.org
X-location: Global Village, Earth.
X-it: See ya!
X-Face: $W<X:Uw4$"nTXRHqqZ=.|pFI@K,TNNH0i>-J; N5/yst7]cQb.o^L$oAhs-J!C
 AOUMQ^NHu3aTb9H8awW~4Y.LR`[o}Rz6Xf=^krb-AwUiM"7zA+QR<vWz'8>hKiTOyd]h
 z]7m=[nhuH{NMrE>~][PM`wSKd?TFV-.glh)>N
User-Agent: Xnews/2006.08.24
X-salutation: Gudday.