awk print the body of an email

I have fetched a couple of emails and stored then in /fetch/mail/oracle.txt, the displayed content is

Date:
From:
Subject:
To:
Content-Type:
---body -----
---------
Date:
From:
Subject:
To:
Content-Type:
----body -----
------
Date:
From:

I want to retrieve the body only from the emails i fetched,the problem i am having is the body doesn't have a tag,

the output should be like

email-1
----body---
email-2
----body---

Hi,

Try this one,

awk '/Content-Type/{p=1;c++;print "Email-",c;}/Date/{p=0}p' file

Cheers,
Ranga:-)

Thank you

Lookout for body text that contains "date" (a fairly common word).

This might be a little safer:

awk '/^Content-Type:/{p++;$0="Email-" ++c}/^----/{p=0}p' file