Article View: news.software.readers
Article #229060Killing “ attribution lines ” is easy !
From: Jeff▲Relf
Date: Mon, 19 Jan 2009 11:12
Date: Mon, 19 Jan 2009 11:12
27 lines
2343 bytes
2343 bytes
Oops ..killing “ attribution lines ” is easy ! it goes like this ..
If there are blank lines at the start of a post, they are removed.
>From there, scan lines ( up to 5 ) until you fine one that's
either blank or >Quoted.
These scanned lines are attribution lines
if they were terminated by either a >Quoted line
or a blank line followed by a >Quoted line.
The code ( from JeffRelf.F-M.FM/X.CPP ) goes like this:
// BB points to the body, an array of lines.
// Ch is the first character of the current line ( null == blank ).
// “ SawQ == 1 ” means attribution lines were removed.
PP = BB - 1 ; int SawQ = 0 ; const int MaxAttribLns = 5 ;
while ( ++ PP < EE && PP - BB <= MaxAttribLns
&& * PP && ( Ch = * * PP, Ch && ! >Quoted ) );
if ( >Quoted || ++ PP < EE && * PP && ( Ch = * * PP, >Quoted ) )
// If the scanned lines were terminated by a >Quoted line
// or “ a blank line followed by a >Quoted line ” redefine
// the top line of the body, thus excluding the attribution lines.
BB = PP + 1, SawQ = 1 ;
.......
#define >Quoted ( Ch == '>' || Ch == '|' )
Technical Details
Message-ID:
<Jeff_Relf@Seattle.2009_Jan.19|3.12am|U>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!number1.nntp.dca.giganews.com!border2.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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<Jeff_Relf@Seattle.2009_Jan.15|3.57am|P> <slrngmuesk.9f.steve@news.mixmin.net> <80k58whdxv.fsf@banana.shacknet.nu> <Jeff_Relf@Seattle.2009_Jan.18|2.34am|t> <slrngn6jsi.gbb.steve@news.mixmin.net> <Jeff_Relf@Seattle.2009_Jan.19|0.31am|i>Show Full Headers
Complete Article Headers
Message-ID: <Jeff_Relf@Seattle.2009_Jan.19|3.12am|U> Subject: Killing “ attribution lines ” is easy ! Date: Mon, 19 Jan 2009 11:12:23 +0000 From: Jeff▲Relf <Jeff_Relf@Seattle.Test> References: <Jeff_Relf@Seattle.2009_Jan.15|3.57am|P> <slrngmuesk.9f.steve@news.mixmin.net> <80k58whdxv.fsf@banana.shacknet.nu> <Jeff_Relf@Seattle.2009_Jan.18|2.34am|t> <slrngn6jsi.gbb.steve@news.mixmin.net> <Jeff_Relf@Seattle.2009_Jan.19|0.31am|i> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!number1.nntp.dca.giganews.com!border2.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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: alt.free.newsservers,news.software.readers Lines: 27 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net hHNwiFD7Nk9wUX+Em7x40AuUDQnA6Jrqb1IuzbaI3Dzqs4tuHM Cancel-Lock: sha1:iRk6J1jJQrBt7YrlXBVjHCuSfgg= User-Agent: JeffRelf.F-M.FM/X.ZIP X-Original-Bytes: 2186