Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Perl & mail headersby sgifford (Prior) |
on Apr 30, 2004 at 04:55 UTC ( [id://349335]=note: print w/replies, xml ) | Need Help?? |
Unix mailboxes are flat files. Each message starts with the pattern:
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. 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 Section
Seekers of Perl Wisdom
|
|