🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #246981

Re: Dialog: Small Issues

#246981
From: Bernd Rose
Date: Mon, 22 Aug 2011 18:33
75 lines
4677 bytes
On Mon, 22 Aug 2011 12:01:15 +0800, rdj wrote:

Now - with a bit more time at hands - a couple of additional
suggestions...

> 1.  I'm looking for a way to automatically clean up a message just after I
> hit reply/followup (i.e. from within the message editor). Simple stuff, just
> Select All + Reformat Paragraph, and (more importantly) remove multiple
> blank lines (the General Settings > Posting > `Remove multiple empty blank
> [...]' checkbox works for Usenet messages, but not email). Can this be done
> with a script?

Multiple empty lines are removed for reply-mails here, as well. 
But this isn't different from .1, which - at least here - shows 
the same behavior: One blank line is kept in both cases; all 
surrounding ones are removed, when the option you mentioned is
set.

For reformatting I've assigned Ctrl+r to <Reformat Paragraph>. 
(Use <Options><Configure...> in a Composition Window to do this.)
Afterwards, it is just Ctrl+a,r,<Home> (i.e.: press a, r and - if
you wish to start on top of the message - <Home> while holding 
the Ctrl key down.) 

To optionally combine these shortcuts, you probably need an
external program like AutoHotkey (http://www.autohotkey.com), 
because scripting will always address the main Dialog Windows 
instead of the Composition Window, IIRC.
 
> 2.  The accelerator keys to get into the _O_ptions and _S_ettings menus
> don't work. I assume this is because the Errors tab in the Status toolbar
> contains `Clear and Cl_o_se' and `_S_ilent Errors' buttons. Can any
> accelerator keys be changed/removed?

Accelerator keys for *main* menu entries and for the status window 
cannot be changed via 4D GUI, AFAICT. You'd need to use a resource
editor and patch the Dialog.exe for this.

Get Ressource Hacker from here:

  http://www.angusj.com/resourcehacker

and load Dialog.exe into it. - After making a backup of the Dialog.exe,
which hopefully is .41 by now...  ;-)

Search for the string of the menu entry, where you want to change the
shortcut, e.g. "&Silent errors". Please note that the ampersand stands
always directly before the character, which currently carries the
shortcut. To remove a shortcut altogether, just delete the ampersand.
If you wish a different character to be the shortcut, move the
ampersand prior to that character. Afterwards, hit <Compile Script>
and save.

Including the ampersand character in the search is not necessary, but
a good security measure. Some strings may occur more than once in
the *.exe. Nevertheless, look at the context of the position, where
the string is found and continue the search to look, whether there
are other positions, as well. Changes should only be done, when it
is certain, that the correct position /really/ has been found...

And maybe try beforehand, whether the shortcut you wish to assign
isn't in use already. 

Of course, Dialog should be closed during the patching.

> 3.  Is there a way to force Dialog to use a particular identity when a new
> email message is triggered by a website email link?

No parameter for this. But since always the topmost "Inbox" identity 
from the <Subscribed> pane is used for mailto: links opened via a
-mailurl: command line parameter, just order your identities on that 
pane the way it suites your purpose most.

HTH.
Bernd
Technical Details
Message-ID: <ekjg6fsd6jgl.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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!diablo1.news.osn.de!news.osn.de!diablo2.news.osn.de!news.belwue.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail
References: <4upa1m.ee1.17.1@news.alt.net>

Show Full Headers
Complete Article Headers
Message-ID: <ekjg6fsd6jgl.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: Dialog: Small Issues
Date: Mon, 22 Aug 2011 20:33:32 +0200
From: Bernd Rose <b.rose.tmpbox@expires-2011-08-31.arcornews.de>
References: <4upa1m.ee1.17.1@news.alt.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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!diablo1.news.osn.de!news.osn.de!diablo2.news.osn.de!news.belwue.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (6ecb491c.32.445)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 75
Organization: Arcor
NNTP-Posting-Date: 22 Aug 2011 20:34:14 CEST
NNTP-Posting-Host: b031b572.newsspool4.arcor-online.net
X-Trace: DXC=QkIG\8Y90WVcHPTNZh_e7Q4IUK<Cl32<Q4Fo<]lROoRQ8kF<OcfhCO[CFQi5:; 7;
 gU19JlNQl`::YW5AIW790ggXc0^3kYPm34V
X-Complaints-To: usenet-abuse@arcor.de
X-Original-Bytes: 4403