Immediately following the From_ are the message headers, followed by a blank line, followed by the body of the message. The message ends at the next From_ or at EOF./^From /
As Stevie-O suggests, you'll probably want to use a mail parsing module for this. It's not that hard to write your own, but almost nobody gets it right the first time, and it's easier to just use one of the modules
In reply to Re: Perl & mail headers
by sgifford
in thread Perl & mail headers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |