Ben Margolin wrote:
> You really want a combination of a database (with fields for subject,
> author, body, etc.) and some sort of full-text indexing system, to
> build indexes for the body fields. It would definitely be useful...
> [ Ben Margolin - ben@stripped ]
Ben, thanks for the note of interest. Right now, I'm parsing it at bash
looking for the 'From -' line, and, going from there. My chief concern,
is that this could be an extremely long operation in bash, so, I was
hoping for a quick c kludge. But, oh well.
1> cat the mail file;
2> Find the 'From -' line and stick it in a variable;
3> At the line feed and, up to the 1st blank line (message) read into an
4> Read in the message until the next blank line into a message
5> Loop 'til done.
Thoughts/pitfalls, would be helpful.
Linux rocks!!! www.dedserius.com