From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078619210521.tru64-unix-managers.marc@archive.invalid> From: George Gallen Date: Tue, 18 Nov 1997 15:19:51 +0000 To: tru64-unix-managers Subject: SUMMARY: Re:/usr/spool/mail files X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078619210521 original message: How does the mail program know the end of one piece of mail and the beginning of the next? Does it look for "Received from:" to signal the start? what if that were imbedded in the message? Or is there a byte count internal to the message ID? Does anyone know where I could get source to a mail display program that would show how it parses the /usr/spool/mail files? I'm attempting to write a front end mail display program to integrate with our other programming (in PICK). I'm not looking for 3rd party, as I will be needing very customized integration. Thanx George Gallen ggallen@slackinc.com RESULTS: Apparantly what I needed to know was that anytime the combination "From " starts on a line that is not from the header it will have the ">" added to the front. So looking for "From " at the beggining of the line is what is used for parsing. Intresting that "from ", "from: ","From: " are not escaped with the ">", it is very specific of Uppercase F, lowercase rom then a space. www.washington.edu/pine/ was suggested as a source for pine (the source I was looking for). Thanx to Lucio Chiappetti Elliot Smorodinsky