[ale] Easy way to cut body of email in perl

attriel attriel at d20boards.net
Thu Jan 5 13:51:20 EST 2006


>> It's been a while since i was manually deconstructing mail, but IIRC
>> there's a blank line between headers and body ... and between messages.
>
> Sure.  Not that it's not trivial to separate the two.
>
> my( $headers, $body );
> while( <> ) {
>
>
> But then you've got to do grunt work such as parsing the headers yourself.
>  Much simpler just to use a well tested module and be done with it.

I didn't see anything about actually wanting to read the headers, he just
wanted to separate the body ;)




More information about the Ale mailing list