Article View: news.software.readers
Article #248500Re: Q.: Dialog and X-Face display ... ?
From: VanguardLH
Date: Thu, 26 Jan 2012 20:38
Date: Thu, 26 Jan 2012 20:38
53 lines
4062 bytes
4062 bytes
Bernd Rose wrote:
> On Wed, 25 Jan 2012 13:45:03 -0600, VanguardLH wrote:
>
>> I don't do Delphi so I have to guess based on other programming
>> languages that I've played with. Looking at your script, is:
>>
>> Message[i]
>>
>> the same as:
>>
>> Message.strings[i]
>
> Strings is the default method of the TStrinList object and therefore
> can be omitted when using indexed access. So: Yes, it is the same.
>
>> I see the latter get used in the PHP-stripping script already defined
>> for the event.
>
> You probably mean PGP? - It just makes me nervous to read that "PHP"
> over and over again, and always have that gnawing doubt... ;-)
>
>> Also, how does this script limit its scan to just the headers (i.e., up
>> to the first blank line that delimits the headers)? That seems to be
>> the point for the until-clause of the *outer* repeat loop.
>
> Yes.
>
>> Okay, but then what is the point of the inner repeat loop (in the
>> then-clause of the if-statement)? i isn't getting incremented there. At
>> that point in that loop, i isn't changing.
>
> The inner loop does not only remove the line starting with "X-Face: "
> but also all following lines starting with a space char until either
> another header is found or the end of the headers block. This is done
> to remove additional X-Face lines (in case the X-Face is spread among
> multiple lines, which is possible). Please note: The deletion of each
> line lets the next line take its place /without/ an increment to i.
>
> As long as you only search for X-Face, it would be possible to break
> out of the outer loop at the end of the "then" part of the if condition.
> But this would increase complexity without much gain. And you couldn't
> just add checks for other headers in the "if" part, as you can do now:
>
> if (Pos('X-Face: ', Message[i]) = 1) or (Pos('Keywords: ', Message[i]) = 1) Then
>
> Bernd
Thanks for the reply. I learned something new (although I've
instinctively handled continuation lines): a header line with a space
character in position 1 is a continuation line. I don't know how many
hundreds of messages that I've looked at their headers but it never
dawned on me that was the scheme to denote a multi-line header. Duh!
Technical Details
Message-ID:
<jfsdkm$cfd$1@news.albasani.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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news.albasani.net!.POSTED!not-for-mailReferences:
<1ass3sozlgobe$.1ov5otwd4to98$.dlg@40tude.net> <1e4muey1ojn1a.dlg@justacineast.motzarella.org> <jfko1d$3kq$1@news.albasani.net> <16ihfjp1m3ml1$.16m1mn0g0z6u3.dlg@40tude.net> <jfmu3a$saf$1@news.albasani.net> <5mkwbkqbbnvm.dlg@b.rose.tmpbox.news.arcor.de> <jfpj3f$uf2$1@news.albasani.net> <jfpm3t$5sr$1@news.albasani.net> <50tylzpof0dr$.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <jfsdkm$cfd$1@news.albasani.net> Subject: Re: Q.: Dialog and X-Face display ... ? Date: Thu, 26 Jan 2012 14:38:48 -0600 From: VanguardLH <V@nguard.LH> References: <1ass3sozlgobe$.1ov5otwd4to98$.dlg@40tude.net> <1e4muey1ojn1a.dlg@justacineast.motzarella.org> <jfko1d$3kq$1@news.albasani.net> <16ihfjp1m3ml1$.16m1mn0g0z6u3.dlg@40tude.net> <jfmu3a$saf$1@news.albasani.net> <5mkwbkqbbnvm.dlg@b.rose.tmpbox.news.arcor.de> <jfpj3f$uf2$1@news.albasani.net> <jfpm3t$5sr$1@news.albasani.net> <50tylzpof0dr$.dlg@b.rose.tmpbox.news.arcor.de> 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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news.albasani.net!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Usenet denizen Lines: 53 Sender: VanguardLH <no-email> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net TnRQYZeUwUHZMaKE5biLlmih1VrIIJNTfwo6FYnASxxfbb7HXKr7aVIZNkUSIVyFQB4VRK11QftmaBUQl42wIKdKLVbM4EaSjn0lJD0ZG0HX6tZ2iOurW/HI1hhgHFDG NNTP-Posting-Date: Thu, 26 Jan 2012 20:38:47 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="dHZm3ziGe1SsUawIVSLVr12ZXZibHZ/V/aJ1aqiWpvcwoylwtqI/1+dknzA9XGgIIcwnlk7ekEW/B2zbKvAbHgJ5/8W1ZG80aiTd/DHC8hxxx8jXqeykuOdpY341pmpq"; mail-complaints-to="abuse@albasani.net" Keywords: VanguardLH VLH811 User-Agent: 40tude_Dialog/2.0.15.41 Cancel-Lock: sha1:XN0VyI96PKD8Pi3z38+a+9ZnpmI= X-Original-Bytes: 3763