Date: Thu, 22 Jun 2000 08:11:47 -0700 From: "Crist J. Clark" <cristjc@earthlink.net> To: Dan Larsson <dl@tyfon.net> Cc: questions@FreeBSD.ORG Subject: Re: getting mailbody using non perl methods Message-ID: <20000622081147.A295@dialin-client.earthlink.net> In-Reply-To: <NEBBJANJCNNAKCPFKHHFIEGDCHAA.dl@tyfon.net>; from dl@tyfon.net on Thu, Jun 22, 2000 at 03:35:34PM %2B0200 References: <NEBBJANJCNNAKCPFKHHFIEGDCHAA.dl@tyfon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 22, 2000 at 03:35:34PM +0200, Dan Larsson wrote: > I need to extract the body from an email. > > Any ideas? Off the top of my head, it's not pretty, but, $ awk '/^From / { inbody = 0 } /^$/ && inbody == 0 { inbody = 1; next } inbody == 1 { print }' < message > body Seems to work. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000622081147.A295>