Getting only a certain part of an email body using imap_body
<p>I have mails where I need to obtain the body via PHP imap functions and then storing it in the database. These mails a send from a response system. I use this code to fetch the body of the email</p>

<pre><code>$bodyText = imap_fetchbody($mbox,$v,1.2);
if(!strlen($bodyText)&gt;0){
     $bodyText = imap_fetchbody($mbox,$v,1);
}
</code></pre>

<p>This works perfectly but also includes the original message body, is there a way to only obtain the reply.</p>

<p>The whole email body looks like this</p>

<pre><code>**This is a test
-- 
Kind Regards,



-----Original Message-----
From: -------------
To:--------------------------
Subject: You have received a reply to your enquiry
New System
Date: Tue, 5 Jul 2011 16:24:28 +0200
Good day,
You have received the following reply to an enquiry you made 
-------------------------------------------------------------------------------------------------
test3     

--------------------------------------------------------------------------------------------------
To reply to this comment please click on the Reply To button and add the message you wish to send.**
</code></pre>

<p>Is there a way to get only the body of the message without the ORIGINAL MESSAGE USING IMAP FUNCTIONS OR other PHP functions?</p>
