🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Mark Mon, 06 Apr 1998 00:00
How to convert posts from Agent to DBF or CSV?
#39969
Author: Mark
Date: Mon, 06 Apr 1998 00:00
8 lines
804 bytes
To store saved messages in a database, I want to convert from Agent's
continuous unix-style message output file to DBF or CSV. Any third
party DOS or Windows programs?
Thanks in advance for any suggestions.
Mark in North Hollywood, CA, USA

Re: How to convert posts from Agent to DBF or CSV?
#39981
Author: Fluffy
Date: Mon, 06 Apr 1998 00:00
13 lines
1172 bytes
Mark <mark@flyjetwest.com> wrote:
: To store saved messages in a database, I want to convert from Agent's
: continuous unix-style message output file to DBF or CSV. Any third
: party DOS or Windows programs?
: Thanks in advance for any suggestions.
: Mark in North Hollywood, CA, USA

Does Agent put a 'From ' (no colon) header at the top of each message
when exporting?  If so, anything that will import Eudora messages ought
to work.

Re: How to convert posts from Agent to DBF or CSV?
#39982
Author: Mark
Date: Tue, 07 Apr 1998 00:00
29 lines
1737 bytes
Agent puts a colon, ie From:, and it's not the first field. 
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. 

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.

fluffy@meow.org (Fluffy) wrote:

>Mark <mark@flyjetwest.com> wrote:
>: To store saved messages in a database, I want to convert from Agent's
>: continuous unix-style message output file to DBF or CSV. Any third
>: party DOS or Windows programs?
>: Thanks in advance for any suggestions.
>: Mark in North Hollywood, CA, USA
>
>Does Agent put a 'From ' (no colon) header at the top of each message
>when exporting?  If so, anything that will import Eudora messages ought
>to work.

Mark in North Hollywood, CA, USA

Re: How to convert posts from Agent to DBF or CSV?
#40039
Author: 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.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads