Quick update...
After more research I've found this format is also commonly called MBF or Microsoft Binary Format which was used in QBasic, GWBasic, and some of the older Microsoft programming languages for DOS. I guess the original QWK application was written in one of these in the MS-DOS hay-days. Microsoft does have an old KB entry here - http://support.microsoft.com/kb/140520 - with more info, so I'm looking into this now. I really want to keep the entire process in PHP without hitting external applications, so I may just move forward with ASCII in the NDX files instead of the MS Binary format, which unfortunately would make it incompatible with the QWK format used by existing readers and BBSes.
For those more experienced with QWK than I, is it possible to use ASCII in the NDX files and still have it compatible with QWK readers? Or are there other options?
Re: Re: Reading an NDX file in an QWK packet using PHP
By: Sam Alexander to Sam Alexander on Tue Jan 05 2010 02:54 pm
A reader may (but is not required) to read the NDX files, but it doesn't create them. I'm not sure what you're proposing for the use of ASCII, but
it definitely sounds like it wouldn't work.
You don't have to use the NDX files at all - you could just parse the MESSAGES.DAT file. Synchronet-created QWK packets also contain a
HEADERS.DAT file which contains RFC-822 style headers for each message. So long as you're creating a reader, it'd be nice if you supported the HEADERS.DAT file as well. Synchronet has other QWK extension (mostly for
QWK networking), but with the introduction of the HEADERS.DAT file (in 2008?), most of the other Synchronet extensions are now obsolete (see ftp://vert.synchro.net/main/SBBSDOCS/syncqnet.txt for details).
You don't have to use the NDX files at all - you could just parse the MESSAGES.DAT file. Synchronet-created QWK packets also contain a HEADERS.DAT file which contains RFC-822 style headers for each message.
Thanks DM for the reply and the link... it helps tremendously! I've been using the QWK specs posted on Textfiles.com and a few other places, and that's what talked about the NDX files. If the same info is in the Headers.dat I'll run that way and not mess with the NDX files since opening those is the showstopper thus far.
entire process in PHP without hitting external applications, so I may just move forward with ASCII in the NDX files instead of the MS Binary format, which unfortunately would make it incompatible with the QWK format used by existing readers and BBSes.If your making a 'READER', then you can generate your own INDEX files, you
For those more experienced with QWK than I, is it possible to use ASCII in the NDX files and still have it compatible with QWK readers? Or are there other options?
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 105 |
Nodes: | 16 (1 / 15) |
Uptime: | 09:09:45 |
Calls: | 5,902 |
Calls today: | 2 |
Files: | 8,496 |
D/L today: |
43 files (4,640K bytes) |
Messages: | 342,951 |