>>>>> "Ken" == Ken Kinder <kkinder at tridog.com> writes: Ken> Just split by "\nFrom: " I think. actually, you want to split on "\n\nFrom "; a blank line, followed by a line with "From " at the beginning. this is why many mail user agents put a ">" in front of "From " when it appears at the start of a paragraph. testing: