From owner-freebsd-questions Thu Jun 22 7:15:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from snoopy.brwn.org (intgw1.brwn.org [196.28.127.66]) by hub.freebsd.org (Postfix) with ESMTP id 9A39B37C2EF for ; Thu, 22 Jun 2000 07:15:07 -0700 (PDT) (envelope-from willem@snoopy.brwn.org) Received: by snoopy.brwn.org (Postfix, from userid 1001) id 229C71D63; Thu, 22 Jun 2000 16:15:02 +0200 (SAST) Date: Thu, 22 Jun 2000 16:15:01 +0200 From: Willem Brown To: Dan Larsson Cc: questions@freebsd.org Subject: Re: getting mailbody using non perl methods Message-ID: <20000622161501.H36643@snoopy.brwn.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from dl@tyfon.net on Thu, Jun 22, 2000 at 03:35:34PM +0200 X-Public-Key: http://www.brwn.org/~willem/pubkey.txt Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, If you have procmail installed, have a look at formail man 1 formail There is an example using sed in there as well. sed -e '1,/^$/d' < mailmessage > mailbody On Thu, Jun 22, 2000 at 03:35:34PM +0200, Dan Larsson wrote: > I need to extract the body from an email. > > Any ideas? > > Regards > ------------ > Dan Larsson > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > Regards Willem Brown -- /* =============================================================== */ /* Linux, FreeBSD, NetBSD, OpenBSD. The choice is yours. */ /* =============================================================== */ When in doubt, predict that the trend will continue. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message