/** * Returns the relevant content of the email message, minus any quotations, and the line that includes the validation hash */ public function getProcessedBody() { $r = preg_split(MailImporter::getMessageBodyHashRegularExpression(), $this->body, $matches); $message = $r[0]; $r = preg_replace(array( '/^On (.*) at (.*), (.*) wrote:/sm', '/[\n\r\s\>]*\Z/i' ), '', $message); return $r; }