Article View: news.software.readers
Article #265100Re: [dialog] Can I set dialog to edit in Notepad++
From: VanguardLH
Date: Wed, 11 Aug 2021 20:02
Date: Wed, 11 Aug 2021 20:02
74 lines
4995 bytes
4995 bytes
bill <bill@spam.invalid> wrote:
> Quinn C wrote:
>
>> Bill wrote:
>>
>>> I was hoping Dialog's "Save & Close Draft" would save the
>>> composition to a given location but I can't find the saved draft in
>>> a text-editable format.
>>
>> It should be in the Drafts folder.
>
> It "should" be.
>
> But there is no "Drafts" folder that I know of in my Dialog hierarchy.
> 40tude Dialog has folders for {locale,maps,Scripts,dicts,logs,temp,data}.
> If the saved draft is in a text-editable file somewhere, I'd love to
> know.
Quinn probably means the Drafts folder in the hierarchical list of
folders in the message store. There is no Drafts folder in the file
system. Dialog has its Data folder in the file system, but it's a mess
trying to figure which <n>.<ext> file is for what.
When you have Dialog compact its message store (File -> Compact), it
first saves a copy, by default (you can override), of the current
message store under a DATA_OLD<n> folder in the file system. If
compacting results in a corrupted or unusable message store, you can
revert to the old one that was created just before the compaction began.
There is no setting on how many old copies to keep (no backup retention
count), so eventually you'll want to delete the oldest DATA_OLD<n>
folders.
ASIDE: Just now, I noticed I had DATA_OLD and 4 DATA_OLD<n> folders.
I haven't had a problem since the last compaction, so I really only
need 1 old copy, so I deleted the DATA_OLD<n> folders to recover 1.52
GB of disk space, and just kept the DATA_OLD folder. Since I schedule
daily image backups (month full @ 52-week retention, weekly
differential @ 12- week retention, and daily incrementals @ 1-week
retention), so even the DATA_OLD folder is superfluous, but I keep it,
anyway. I just have to remember occasionally to delete the
DATA_OLD<n> folders since I'm not going back that far for a message
store state, plus I probably do compaction only about twice a year, if
that. At one time, I used to visit about 52 newsgroups. I'm down to
21. Not as much data (messages) to store. I have Dialog configured
to download complete messages instead of just headers (and then wait
until I select a message to download it). That way, I get all headers
(overview and non-overview headers) and body on which I can test in my
filters, not just the overview headers.
So, there are DATA[_OLD[n]] subfolders under Dialog's installation
folder. Somewhere under there would be where the "Draft" folder in
Dialog's message store structure. I'm sure the numbered files meant
something to the program's author, but they are meaningless to the rest
of us. The messages are stored in .dat database files. I didn't see an
identifying string near the top of a .dat file to indicate which
database structure was used to manage the .dat files. Each .dat
database file is not wholly self-contained. There are also .idx files
which are probably indexes to records within the .dat files, and .ini
files that hint at some formatting or view settings. Without knowing
what database program was used, or without knowing the database's record
delimiters and record structures, digging into those files would be
fruitless. You could try copying the DATA folder to somewhere else,
like into %temp%, and experimenting with mySQL to see if the database
files use SQL structure. If SQL structure, you could issue queries
using mySQL to read the database.
However, that still does not give you a text-only formatted file in
which messages (retrieved, drafts, sent, etc) are stored. If mySQL
works to dig out the messages, and after discovering which <n>.dat file
is for the Drafts "folder" shown in Dialog, you would have to make SQL
inquiries to extract messages. You'd edit or do whatever with the
extracted record, and then have to use an SQL directive to store the
text back into the database to overwrite the old record. Yeah, right.
Technical Details
Message-ID:
<vvmpqkq1erm0$.dlg@v.nguard.lh>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<sevelu$1qrk$1@gioia.aioe.org> <l01qbjvknuqe.dlg@v.nguard.lh> <sf0pg9$16vs$1@gioia.aioe.org> <4zyh453z7mvx.dlg@mid.crommatograph.info> <sf15bk$kv8$1@gioia.aioe.org>Show Full Headers
Complete Article Headers
Message-ID: <vvmpqkq1erm0$.dlg@v.nguard.lh> Subject: Re: [dialog] Can I set dialog to edit in Notepad++ Date: Wed, 11 Aug 2021 15:02:35 -0500 From: VanguardLH <V@nguard.LH> References: <sevelu$1qrk$1@gioia.aioe.org> <l01qbjvknuqe.dlg@v.nguard.lh> <sf0pg9$16vs$1@gioia.aioe.org> <4zyh453z7mvx.dlg@mid.crommatograph.info> <sf15bk$kv8$1@gioia.aioe.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers Organization: Usenet Elder Lines: 74 Reply-To: invalid@invalid.invalid Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net rTVpa2C8FoNrSPnLV3wOPAoTQ5GaZkKo4CuGJLJezhyBNIe9jQ Keywords: VanguardLH VLH811 Cancel-Lock: sha1:y90rKnhSwQJjYmobhS/J2ayHezE= User-Agent: 40tude_Dialog/2.0.15.41