🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #40039

Re: How to convert posts from Agent to DBF or CSV?

#40039
From: Fluffy
Date: Wed, 08 Apr 1998 00:00
48 lines
2603 bytes
Mark <mark@flyjetwest.com> wrote:
/*
 * Agent puts a colon, ie From:, and it's not the first field. 
 */

It must have *something* to tell where one message ends and the next
begins!  Unless it's one-per-file, which would be icky on a FAT drive.

/*
 * Have you found a program that imports Eudora messages? I've been
 * trying to use Putter and other robo-editors to make them CSV files,
 * but none will "back up" to put the closing quotes around the message
 * body. 
 */

Perl is your friend for things ilke this, but even a short, simple
BASIC thingy could make quick work of a conversion like that.  (Yes, I
know BASIC is oogy, but it's good for string work and easy to come by
in the Microsoft world.)

/*
 * Final objective is to import saved messages automatically into a
 * dbase-compatible database, instead of cut and pasting them one by one.
 * I'm concerned because there are hundreds of messages stacked up and
 * Agent has corrupted the file once before, with loss of a whole group's
 * data.
 */

Okay, then let's keep it *simple*.  At the very top of each message,
add this fake header:

	From nobody@my.host Wed Apr  8 04:19:13 UTC 1998

(The actual "address" and date don't matter, it's only a separator.)

If you have any lines in the original message bodies starting with
'From ', it would be a good idea to prepend something to that line (the
'>' quote marker is traditional).

Just put the messages for each newsgroup end to end in a plain text
file.  Few things are harder to corrupt than plain text =)  Now, your
text file will be available to virtually any mail reader that
recognizes Unix mailboxes, including Eudora.  It's easy to work with
the articles this way, and they'll take far less room than would a dbf
and possible indexes.

Technical Details
Message-ID: <Mw.1ypkx_owf@fluffy.meow.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <3529564d.7393451@news.concentric.net> <Mw.1wf76_hx7@fluffy.meow.org> <352a24d6.897951@news.concentric.net>

Show Full Headers
Complete Article Headers
Message-ID: <Mw.1ypkx_owf@fluffy.meow.org>
Subject: Re: How to convert posts from Agent to DBF or CSV?
Date: Wed, 08 Apr 1998 00:00:00 +0000
From: fluffy@meow.org (Fluffy)
References: <3529564d.7393451@news.concentric.net> <Mw.1wf76_hx7@fluffy.meow.org> <352a24d6.897951@news.concentric.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.mbox.zip!not-for-mail
X-Deja-AN: 341946639
Sender: news@fluffy.meow.org (Fluffy Owns Me)
Mail-Copies-To: never
X-Server-Date: Wed, 08 Apr 1998 04:24:33 GMT
Organization: Usenet, a division of Meow Industries
X-Meow: Meow
Newsgroups: news.software.readers
X-Bozo: yes