Article View: news.software.readers
Article #241540--
From: Unknown
Date: Sun, 04 Jul 2010 09:11
Date: Sun, 04 Jul 2010 09:11
38 lines
3588 bytes
3588 bytes
<PRE>
In <A hRef="http://jeffrelf.f-m.fm/X.CPP">X.CPP ( Micro·Soft Visual C++ 9 )</A>,
I read the following header/User·Agent lines:
int reSh( int Single ) { Copy·Lns( Single ? Over·Write·Lns : Sep·Lns )
int rv = 0, _I·Ln·PP = Ln.PP - Ln.BB + 1 ;
if ( ++ PP + 1 >= EE || ! ( B = P = * PP ) || ! * P ) {
Sh( L"%cNo Data%c.", RED·Ch, plain·Ch ); return 0 ; }
wchar_t B_MID [ 999 ]; wmemmove( B_MID, B, szStr( B ) + 1 );
P = B_MID ; int Ch, Ch2 ; gTok✚P gTok✚P if ( Ch != '❰' ) gTok✚P LnP MID = ++ P ;
if ( P = FromEnd( MID, '>' ) ) *P = 0 ;
struct { LnP MID, Date, Path, Abuse, ISP, Reader, From, Newsgroups, Jerk, Subject, Ref ; } H = { MID };
if ( !Ch || !P ) { Sh( L"%cMessage-ID is borked%c.", RED·Ch, plain·Ch );
Dump: PP = BB - 1 ; while ( ++PP < EE ) Sh( L" %s", *PP ); return 0 ; }
LnP G·Hater = L"" ; int X·HTTP = 0, Mailed_ = 0, Filter·Type = 1, Trusted·Date = 0 ;
while ( ++PP < EE && ( B = P = *PP ) && ( Ch = *B ) ) { gTok✚P int Used = 1 ;
if ( Eqi( Tok, L"X-No-Archive:" ) ) G·Hater = L"G·Hater" ;
else if ( !Trusted·Date && Eqi( Tok, L"Date:" ) ) H.Date = P ;
else if ( !Trusted·Date && Eqi( Tok, L"Injection-Date:" ) ) H.Date = P, Trusted·Date = 1 ;
else if ( !Trusted·Date && Eqi( Tok, L"NNTP-Posting-Date:" ) ) H.Date = P, Trusted·Date = 1 ;
else if ( Eqi( Tok, L"Content-Type:" ) && Pat·In·Str( L"Text/HTML", P ) ) Filter·Type = _HTML ;
else if ( Eqi( Tok, L"Path:" ) ) H.Path = P ;
else if ( Eqi( Tok, L"X-Complaints-To:" ) ) H.Abuse = P ;
else if ( Eqi( Tok, L"Injection-Info:" ) ) H.Abuse = P ;
else if ( Eqi( Tok, L"X-HTTP-UserAgent:" ) ) H.Reader = P, X·HTTP = 1 ;
else if ( !H.Reader && ( Eqi( Tok, L"User-Agent:" ) || Eqi( Tok, L"X-Newsreader:" ) || Eqi( Tok, L"X-Mailer:" ) ) )
H.Reader = P, X·HTTP = 0 ;
else if ( Eqi( Tok, L"NNTP-Posting-Host:" ) ) H.ISP = P ;
else if ( Eqi( Tok, L"From:" ) ) H.From = P ;
else if ( Eqi( Tok, L"Newsgroups:" ) ) H.Newsgroups = P ;
else if ( Eqi( Tok, L"Followup-To:" ) ) H.Jerk = P ;
else if ( Eqi( Tok, L"Subject:" ) ) H.Subject = P ;
else if ( Eqi( Tok, L"References:" ) ) H.Ref = P ;
else Used = 0 ; *E·Tok = Used ? L'▶' : 32 ; }
#define Assert( XX ) \
if ( !H.XX ) { Sh( L"The “%S:” %cline is missing%c.", #XX, RED·Ch, plain·Ch ); goto Dump ; }
Assert( Path ) Assert( Date ) Assert( From ) Assert( Newsgroups ) Assert( Subject )
Technical Details
Message-ID:
<JeffRelf.F-M.FM.3r@2010_Jul4.2.11am>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!xlned.com!feeder3.xlned.com!news.glorb.com!news-spur1.glorb.com!newsread.glorb.com!.POSTED!not-for-mailReferences:
<1s03tb653y54q.dlg@sqwertz.com> <4c2e3f3a$1_2@news4us.nl> <4lwmc8fjc37b.dlg@sqwertz.com> <slrni30blu.5q6.houghi@penne.houghi> <slrni30e7p.5q6.houghi@penne.houghi>Show Full Headers
Complete Article Headers
Message-ID: <JeffRelf.F-M.FM.3r@2010_Jul4.2.11am> Subject: -- Date: Sun, 04 Jul 2010 09:11:57 +0000 From: Unknown <anon@nohost.local> References: <1s03tb653y54q.dlg@sqwertz.com> <4c2e3f3a$1_2@news4us.nl> <4lwmc8fjc37b.dlg@sqwertz.com> <slrni30blu.5q6.houghi@penne.houghi> <slrni30e7p.5q6.houghi@penne.houghi> 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!xlned.com!feeder3.xlned.com!news.glorb.com!news-spur1.glorb.com!newsread.glorb.com!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: JeffRelf.F-M.FM Lines: 38 NNTP-Posting-Host: XJGH+5GM8EvggnDfgIBqtQ.201.posting.glorb.com Content-Type: Text/HTML; charset=UTF-8 X-Complaints-To: abuse@glorb.com NNTP-Posting-Date: Sun, 4 Jul 2010 09:11:58 +0000 (UTC) User-Agent: JeffRelf.F-M.FM/X.EXE X-Notice: Scanned by Mr. Bill