🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #203313

Re: [Dialog] .DAT to .mbox conversion?

#203313
From: Oliver Cromm
Date: Mon, 06 Aug 2007 22:11
65 lines
3708 bytes
* Charles Lasitter wrote:

> On Mon, 6 Aug 2007 12:13:43 -0400, Oliver Cromm wrote:
> 
>> The data you are asking about are in the files msg.dat, msg1.dat,
>> msg2.dat etc., depending on how big your database is - each of them
>> maxes out at roughly 10 MB, I have currently msg13.dat as the
>> highest. 
> 
> I got up to msg19 and it barfed on a file that hit 13 megs.
> 
>> There is no official description, but the format of the .dat files
>> is not that difficult. An analysis and a way to export data (one
>> file per message) was posted in the thread starting at
>> <news:x4b3t9jctoc8$.1g4quxwvnmwf1.dlg@40tude.net>. 
> 
> A most imformative thread ...
> 
>> The Ruby script I gave in that thread could be easily changed to create
>> one mbox file per dat-file instead of single messages.
> 
> So I found out where I'd download the cygwin part, but I don't know
> how you run (compile?) a ruby script within the linux api emulation
> layer?  Another something to download and install?
> 
> Thanks for your post.  Very enlightening.

I find ruby (and other things) to work more natural in Cygwin, but it is
not necessary just to run my script; you could use native Windows Ruby
as well. <http://www.ruby-lang.org/en/downloads/>. Install, then
double-click any .rb-file.

If you have, however, already installed Cygwin, and want to run it
there, 

1. Make sure you have ruby:

Type

  which ruby
  
It should answer:

  /usr/local/bin/ruby

If there's no answer, you should run Cygwin's setup.exe, then, after
many clicks, when you come to package selection, manually select ruby
for installation (you find it in both the Devel and the Interpreters
section).

2. Just type the file name you copied my script under, e.g.:

  dialog_data/msg_split.rb

Or, if it's in the current directory:

  ./msg_split.rb

My script has to be in the same directory as the msg*.dat files. Run it
on a copy of your msg.dat files, just for added security. If you extract
all your 19 files, it will create a *lot* of result files, so many it's
tough for Windows to handle.

-- 
Pentiums melt in your PC, not in your hand.
Technical Details
Message-ID: <nydjhcd39a0y$.dlg@ocromm.my-fqdn.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!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!auth.beige.octanews.com.POSTED!not-for-mail
References: <16n9t1ynvi8j2.dlg@ncdm.com> <nxsahp9pj00b$.dlg@sqwertz.com> <1wk9pc4x2ck6z$.dlg@ocromm.my-fqdn.de> <1ty9e76kkz658.dlg@ncdm.com>

Show Full Headers
Complete Article Headers
Message-ID: <nydjhcd39a0y$.dlg@ocromm.my-fqdn.de>
Subject: Re: [Dialog] .DAT to .mbox conversion?
Date: Mon, 6 Aug 2007 18:11:07 -0400
From: Oliver Cromm <lispamateur@yahoo.de>
References: <16n9t1ynvi8j2.dlg@ncdm.com> <nxsahp9pj00b$.dlg@sqwertz.com> <1wk9pc4x2ck6z$.dlg@ocromm.my-fqdn.de> <1ty9e76kkz658.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!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!indigo.octanews.net!auth.beige.octanews.com.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.1de
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Organization: École Nationale Supérieure de la Bananologie
X-Face: .f:ZE>c\~9oJ+1nK#>ntSHOQS~4x"Qx2m(<D<@p$G"tzb1lgWLUGY.zApKa@VL_?d$r(8=?VjrD9=uY:x!+H=hvj58Uw7)Y9<:KMYD.+^~#qMpeg2rvt`{#2a~7YoyFaFaBEdo4.TJzBqgtCZZ:mku4J|hey}DE}_"z(rl0N)\Pxh*0$"3B2mr\01&YPY7WJ:2kSe'I#PqiTxs1s49!S#W85'\zMXy*wRgD,,k.=4:3M{(P"i6S;
 \az~ut3z`; ?*Y;
 &]11<(EPF-SN`|3PhyL%~AuZpoFjjE_oM1`znHPq_?uib2WXwE+q@m),cLq~B$r^5uO]u6?CEecn=%xsDXNVa(1DX.)O(
Cancel-Lock: sha1:MebLmuuImh+sePrqrNgy079tasI=
Lines: 65
NNTP-Posting-Date: 06 Aug 2007 17:11:08 CDT
X-Complaints-To: abuse@octanews.net
X-Original-Bytes: 3391