shell script/sed command help

First off I have read the man pages for sed and am still having trouble working on a script to remove portions of a log:

My goal is to take a log file to be emailed, read the file and strip the portions away AFTER the line MIME-Version:1.0
and strip away until it to the line starting with Content-Type:application.

(HOWEVER, i would like for the sed command to keep the boundry line written before the Content-Type:application line.)

ex. removing everything bold and italicized. note this will be static so it wont always be the same information or linecount.

MIME-Version: 1.0

--_002_67C1678059C61F408194E53907AFB5CC09FB7E8BE6ISEXMB01RPadr_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


Here goes nothing.
-----Original Message-----
From: =20
Sent: Friday, November 13, 2009 2:42 PM
To: 
Subject: send to myself

This will be forwarded to mail2fax.

--_002_67C1678059C61F408194E53907AFB5CC09FB7E8BE6ISEXMB01RPadr_
Content-Type: application/pdf; 

Any help would be appreciated. thank you.

Try this: -

nawk '
        /MIME-Version: 1.0/{ print;s++ }
        /Content-Type: application\/pdf/{
                print l
                print
                s = 0
        }
        { l = $0 }
        (s){ next }
' infile

---------- Post updated at 10:21 PM ---------- Previous update was at 10:16 PM ----------

Or

nawk '
        /MIME-Version: 1.0/{ print;s++ }
        /Content-Type: application\/pdf/{
                print l
                s = 0
        }
        { l = $0 }
        (s){ next }
        { print }
' infile

If AWK is acceptable:

awk '!f; /^MIME-Version/ { f = 1 }
/^Content-Type: application/ { print p RS $0; f-- }
{ p = $0 }' infile

Do not use /usr/bin/awk on Solaris.

does it change anything if I would need to have the command in a script that needs to call a file to read such as it would call a file "Random.txt" and read the information then strip it out?

No, it shouldn't change anything.