Subj : Re: FTN Packet File Structure?
To   : sean dennis
From : Jon Watson
Date : Fri Oct 15 2004 06:05 pm

======>>> Sean Dennis, 1:18/200 wrote:

Originally to: Jon Watson

Your spelling looks good to me.� About the parsing of the AREA: keyword-to be�
honest, I know very, very little about it.� I've never yet figured out how to�
work with the .PKT format, but I may soon so I can write my own message stuff.


<<<====== end quote


It's a mystery...I have about 50 packets to look at now, and there doesn't seem
to be any consistent delimeter where the headers end and the message text truly
begins. On some packets there is a double carriage return between the last
header and the first line of message text, in other packets there's only a
single carriage return.

Most of the packets (perhaps all, not sure yet) have a ^M^A sequence between
all the headers and then EITHER just a ^M before the text or a ^M^M before the
text. So....I *think* that a single ^M followed by anything other than a ^A
*may* work. But since I can't get preg_replace or ereg_replace to work on the
whole string, I have to read it and evaluate it char by char. Slooooow
business.

We'll see how it goes....

Jon


-FOTW: read your
Fidonet On The Web!
http://www.theheatsinkbbs.ca :=-
--- Internet Rex 2.29
* Origin: The gateway at The HeatSink BBS  (1:134/703)