[ale] Easy way to cut body of email in perl
fletch at phydeaux.org
fletch at phydeaux.org
Wed Jan 4 22:41:35 EST 2006
> I'm using procmail to pass email via STDOUT to a program that is
> supposed to do various things based on what is in the email. I need a
> way in perl to separate the headers from the body. Attached is a piece
> of my log file that shows email that the system received.
[... snip ...]
> Should I consider everything after "Content-Transfer-Encoding" to be the
> body?
In this case, sure. In general, no since there's no guaranteed ordering
of headers.
Safest bet would be to use Mail::Internet or the like and let that parse
things.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org| Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U
More information about the Ale
mailing list