🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #221993

Re: [dialog] Exporting from Sent folder

#221993
From: Ron Ford
Date: Wed, 11 Jun 2008 23:18
34 lines
2533 bytes
On Mon, 9 Jun 2008 19:01:23 -0400, Oliver Cromm posted:

> * Ron Ford <ron@nowhere.net> wrote:
> 
>> I ran the script but don't see any evidence of output or error.  There is
>> no new file in the directory in which the script ran.  I was expecting to
>> get an error due to the first of the require statements:
>> require 'iconv'
>> require 'msgfile'
>> 
>> Does the script need to be run in the data folder?
> 
> Yes, it expects the msg.dat, msg1.dat etc. files in the current
> directory. What I do is copying all of them to the folder where the
> script is while Dialog is closed, so they can't be messed up or locked
> by a running Dialog.

Then you herd them together and import them.  I see that the other way to
do it is to create a .mbx file, which is what Dialog expects to import.
This option is triggered with the -m flag: MBX = ARGV.delete("-m")

I've been looking at Dialog's .dat files with a hex editor to see if this
method can be extended.  With msgfile.rb, is that a commmon utility for
picking apart .dat files? 

I'm unfamiliar with ruby's control chars.  What characters separate records
in @@separator = "\x7F" ?

I don't see any differences between the original items in the sent folders
and those that are exported and re-imported.
-- 
The common argument that crime is caused by poverty is a kind of slander on
the poor.
H. L. Mencken
Technical Details
Message-ID: <14q5k81s9vspt.1b3fvltmhan1s.dlg@40tude.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <azanzl663stj.dlg@mid.crommatograph.info> <f303u6enh3nd.dlg@b.rose.tmpbox.news.arcor.de> <m194g6bq78bp.dlg@mid.crommatograph.info> <mtttz2aivbvy.y1d15q18rhh$.dlg@40tude.net> <nmyjf2kiggt1.dlg@mid.crommatograph.info>

Show Full Headers
Complete Article Headers
Message-ID: <14q5k81s9vspt.1b3fvltmhan1s.dlg@40tude.net>
Subject: Re: [dialog] Exporting from Sent folder
Date: Wed, 11 Jun 2008 18:18:08 -0500
From: Ron Ford <ron@nowhere.net>
References: <azanzl663stj.dlg@mid.crommatograph.info> <f303u6enh3nd.dlg@b.rose.tmpbox.news.arcor.de> <m194g6bq78bp.dlg@mid.crommatograph.info> <mtttz2aivbvy.y1d15q18rhh$.dlg@40tude.net> <nmyjf2kiggt1.dlg@mid.crommatograph.info>
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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 34
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net W+lkuDhBzEMkTIdMXusyWQ6OXZ75hnyblIH1oGcED9aQcv/063
Cancel-Lock: sha1:2y/Xd0sXgpDqVGS7HQwril2EW3Q=
User-Agent: 40tude_Dialog/2.0.15.1