🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #234803

--

#234803
From: _
Date: Wed, 29 Jul 2009 13:16
24 lines
2250 bytes
This is simple:
“ variable hdr = "extract_article_header(\"From\")";
  [...]
  variable expression = "(string_match("+hdr+
    ",\"[^ ]+ +[^ ]+ +<.+@.+>\",1) == 0) and (string_match("+hdr+
    ",\"peter\\.bergt\",1) == 0) and (string_match("+hdr+
    ",\".+@.+ +([^ ]+ [^ ]+.+)\", 1) == 0)";
   do {  if (eval(expression)) [...] ”.
     www.wannabeHacker.COM/src/turbo-plonk.sl
     
“hdr” contains the “From:” line; it's just text, a string.
“expression” contains:
“ string_match( hdr, "[^ ]+ +[^ ]+ +<.+@.+>" , 1 ) == 0 and
  string_match( hdr, "peter\.bergt"          , 1 ) == 0 and
  string_match( hdr, ".+@.+ +([^ ]+ [^ ]+.+)", 1 ) == 0

For “ From: Nicholas <Lawrence_Glickman@comcast.net> ”,
the Regular Expression "[^ ]+ +[^ ]+ +<.+@.+>" matchs:

  blackSpace (“From:”), whiteSpace, blackSpace (“Nicholas” ) and 
  “<Lawrence_Glickman@comcast.net>”.

".+@.+ +([^ ]+ [^ ]+.+)" matchs:
“ From: Lawrence_Glickman@comcast.net (Nicholas) ”.
Technical Details
Message-ID: <_@Jeff_Relf.Seattle.2009_Jul29.6.16am.7d>
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!border1.nntp.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!eweka.nl!hq-usenetpeers.eweka.nl!news.glorb.com!news2.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail
References: <slrnh6sm2b.be4.ShadowTek@desktop.localdomain> <20090729080451@usenet.piggo.com> <slrnh6v215.m8d.ShadowTek@desktop.localdomain> <20090729101510@usenet.piggo.com> <slrnh6vnoo.8ce.ShadowTek@desktop.localdomain> <20090729175840@usenet.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <_@Jeff_Relf.Seattle.2009_Jul29.6.16am.7d>
Subject: --
Date: Wed, 29 Jul 2009 13:16:49 +0000
From: _@Jeff_Relf.Seattle.inValid
References: <slrnh6sm2b.be4.ShadowTek@desktop.localdomain> <20090729080451@usenet.piggo.com> <slrnh6v215.m8d.ShadowTek@desktop.localdomain> <20090729101510@usenet.piggo.com> <slrnh6vnoo.8ce.ShadowTek@desktop.localdomain> <20090729175840@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!border1.nntp.ams.giganews.com!nntp.giganews.com!transit4.hitnews.eu!eweka.nl!hq-usenetpeers.eweka.nl!news.glorb.com!news2.glorb.com!news-spur2.glorb.com!homer.glorb.com!not-for-mail
Newsgroups: news.software.readers
Organization: Glorb Internet Services, http://www.glorb.com
Lines: 24
NNTP-Posting-Host: kfvkoF9Ibgb8XYkDm4wu4A.user.posting2.glorb.com
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@glorb.com
NNTP-Posting-Date: Wed, 29 Jul 2009 13:16:49 +0000 (UTC)
X-Notice: Scanned by Mr. Bill
User-Agent: JeffRelf.F-M.FM/X.ZIP