Article View: news.software.readers
Article #248471Re: Q.: Dialog and X-Face display ... ?
From: VanguardLH
Date: Wed, 25 Jan 2012 18:53
Date: Wed, 25 Jan 2012 18:53
83 lines
4949 bytes
4949 bytes
Bernd Rose wrote:
> On Tue, 24 Jan 2012 12:42:50 -0600 VanguardLH wrote:
>
>>>> ... Personally, I would like an option in Dialog to disable that public
>>>> ego-stroking superfluous fluff. In forums, I have the option to NOT
>>>> show the avatar fluff.
>>>
>>> In Dialog, you have the option to leave the header pane unexpanded. Is that
>>> not good enough?
> [...]
>> no, compressing (unexpanding) the header pane is not good enough. I need
>> it expanded which means I get stuck seeing the face icon. No option JUST
>> on the face icon to show/hide it.
>
> You could set XFaceDrawStyle in settings.ini to an invalid number
> (e.g. 9). This would hide the X-Face without changes to Dialog
> itself or the messages. (Which are the two other possibilities of
> hiding X-Face, that I am aware of. - See below.) The drawback of
> this method is, that you need to avoid to click into the space,
> where the X-Face would have been displayed. Any single mouse click
> switches display mode to a valid one, which makes the X-Face images
> visible, again.
>
> The second method needs patching of Dialog. (Which I don't recommend
> as long as other methods are available.) Inserting a line (with a
> resource editor like Resource Hacker from Angus Johnson)
>
> Visible = False
>
> for the XFacePanel object in TFRM40TDMAIN should permanently switch
> off the Image control itself.
>
> The third method changes the incoming messages. Just remove the
> X-Face header before saving the message to the Dialog database.
> -> The following code is a stripped-down version of the general
> RemoveHeaders script by Hermann Hippen, which can be found here:
>
> http://kh-rademacher.de/4d/remove_g1.html
>
> ;----------------------------<Snip>----------------------------------
> program OnBeforeSavingMessage;
> // *Remove X-Face from incoming messages*
> // Code needs to be inserted in a newly created
> // or modified OnBeforeSaving Event Script
>
> procedure OnBeforeSavingMessage(var Message: TStringlist; Servername: string; IsEmail: boolean);
> var i : Integer;
> begin
> i := 0;
> repeat
> if Pos('X-Face: ', Message[i]) = 1 Then
> repeat
> Message.delete(i);
> until (Message[i][1] > ' ') or (Message[i] = '')
> else
> i := i + 1;
> until Message[i] = '';
> end;
>
> begin
> end.
> ;----------------------------<Snip>----------------------------------
>
> As often: Many ways to achieve something in Dialog... ;-)
>
> HTH.
> Bernd
I like the script method. I defined a bunch of scripts (custom,
message, and event) when I first got Dialog. There was a handy site
listing a bunch of them that I could use or adapt. In fact, when I
trialed many newsreaders at different times trying to find one that I
wanted, I had declined on Dialog until I decided to get into modifying
it using scripts and then it would pass my criteria for a replacement
NNTP client.
I already have a script assigned to the OnBeforeSavingMessage event that
eliminates the PHP signature garbage from posts (yeah, like anyone is
going to bother validating their PHP sig is valid and theirs). I'll
have to see how to roll the above into that same script.
Thanks for the script idea.
Technical Details
Message-ID:
<jfpj3f$uf2$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!feeder.erje.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>Show Full Headers
Complete Article Headers
Message-ID: <jfpj3f$uf2$1@news.albasani.net> Subject: Re: Q.: Dialog and X-Face display ... ? Date: Wed, 25 Jan 2012 12:53:38 -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> 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!feeder.erje.net!news.albasani.net!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Usenet denizen Lines: 83 Sender: VanguardLH <no-email> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net 1ae2UWfPb4AIPWSTqzYynlViuovu4zxv1okBLWEdu5O0cwhohCTZSK7Bh4t8D9hG9Ay32VEhTFNy43A2e7iywcc9qE14KCgt4DMDwYIBwbTid3h9nLZ1wXf5cx0L9hG3 NNTP-Posting-Date: Wed, 25 Jan 2012 18:53:36 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="Xx5cq4A052TMDYPvm+eIOvYC2VYzYN5sw58N+TLuZuuDyen0x4F1DHGQLsXf8wH8EuMT7oV8+iG0XmfSA229qfIV30ug22SQUJQz0quxJzFdaJ4HzDsb6gx7oFoNdkVj"; mail-complaints-to="abuse@albasani.net" Keywords: VanguardLH VLH811 User-Agent: 40tude_Dialog/2.0.15.41 Cancel-Lock: sha1:HwgnUiOGzDFojsatmlynsxThcBI= X-Original-Bytes: 4599