[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Easy way to cut body of email in perl
- Subject: [ale] Easy way to cut body of email in perl
- From: fletch at phydeaux.org (fletch at phydeaux.org)
- Date: Wed, 4 Jan 2006 22:41:35 -0500 (EST)
- In-reply-to: <[email protected]>
- References: <[email protected]>
> 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