Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 2000 16:15:01 +0200
From:      Willem Brown <willem@brwn.org>
To:        Dan Larsson <dl@tyfon.net>
Cc:        questions@freebsd.org
Subject:   Re: getting mailbody using non perl methods
Message-ID:  <20000622161501.H36643@snoopy.brwn.org>
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
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000622161501.H36643>