🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #205133

Re: [Dialog] msg*.dat files "untouchable"?

#205133
From: Bernd Rose
Date: Sun, 02 Sep 2007 19:51
72 lines
4563 bytes
On Wed, 29 Aug 2007 04:46:53 -0400, Charles Lasitter wrote:

> It is not that hard to make some sense of the msg*.dat files, but do
> we know anything about the .dat, .drt, .idx, etc., files?  

They aren't that complicated, either. If you check for file changes
after altering settings or doing any other actions inside the GUI
you'll notice consistent alterations. Beside server passwords and
the like, nothing is encrypted or packed. I have a fairly complete
reference of the files by now...

> There is some data in the files I'd love to be able to fix or change 
> if I could.

[Removing attachements / HTML parts]

I advise against doing it directly inside the msg*.dat files. Because
all messages are stored sequentially, you have to adjust pointers at
too many places. You better stay with the solution Oliver Cromm 
suggested to you a couple of days ago: 

http://groups.google.de/group/news.software.readers/browse_frm/thread/e433c0d24456bec6/e5356b46411b421c

You can first extract the messages to *.mbox, edit those files and
re-import the messages to 40tude Dialog.

Please note that (apart from the glitches I remarked on in that thread)
I noticed another problem with the Ruby script: The msg*.dat files can
contain 1Ah chars. That's an EOF for DOS/Windows based text utilities 
and causes data loss when encountered by the Ruby script. (One of my 
oldest msg*.dat files even contains a message with an EOF inside one 
header!)

Please drop a note in this thread, if you'll apply the above mentioned 
method of extracting mails/messages to *.mbox files on a regular basis. 
In that case we may need to make it a bit more reliable. 

> Suppose you wnated to correct a person's name that was misspelled.  
> If you were to take an editor and do a search / replace to correct the
> spelling, would Dialog "blow up" and trash everything because
> relationships had got mixed up with the other Dialog files files?
> Would it make any difference if the text string being replaced were of
> identical length?

Identical length should be okay. But be carefully when doing it! Be 
sure to have Dialog closed and keep a backup of your data directory. 
Different length replacements, OTOH, are not possible. (As long as
you don't want to adjust the message pointers within the dependent
files as well...)

> What files (if any) can Dialog reconstruct?  I might not care that
> much if Dialog "forgot" the most recently used sort sequence for a
> given inbox / folder, or had to re-do scoring actions or what have
> you.

Apart from *.ini files for non-subscribed groups I wouldn't touch
anything else. I haven't tried stripping down the Data directory, 
myself. But structure and relations of the files and the over-all
behavior of 4D suggests only meagre reconstruction capabilities.
Nevertheless: After backing up your Data directory you can try 
deleting several files, yourself. Please report back if you notice
anything interesting.

> I REALLY wish this was an open source / SOURCEFORGE type 
> of project ...

Hm. Marcus did an awful job, in the first place. I wish he would
pick up where he left. Open source would be nice. But I wouldn't
bet on stable versions and continuous development. That would be
a possibility, but surely no necessity...  ;-)

Bernd
Technical Details
Message-ID: <e48as6mqvk8p$.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
References: <1wtwqtkttphna.dlg@ncdm.com>

Show Full Headers
Complete Article Headers
Message-ID: <e48as6mqvk8p$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: [Dialog] msg*.dat files "untouchable"?
Date: Sun, 2 Sep 2007 21:51:24 +0200
From: Bernd Rose <b.rose.tmpbox@expires-2007-09-30.arcornews.de>
References: <1wtwqtkttphna.dlg@ncdm.com>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (2d5be3a8.207.379)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 72
Organization: Arcor
NNTP-Posting-Date: 02 Sep 2007 21:51:18 CEST
NNTP-Posting-Host: f42a96a1.newsspool2.arcor-online.net
X-Trace: DXC=Xn??f<h842WaoembcbF; DQA9EHlD; 3YcR4Fo<]lROoRQ<`=YMgDjhgR>WofID;
 <ok[BYf[Tl<>RjZKIU?L7UURmVeQg_NS:@WOP
X-Complaints-To: usenet-abuse@arcor.de