PHP Classes

BUG $parse->received; doesn't do it's job

Recommend this page to a friend!

      Parse Mail  >  All threads  >  BUG $parse->received; doesn't do...  >  (Un) Subscribe thread alerts  
Subject:BUG $parse->received; doesn't do...
Summary:only one header line is contained in the above command.
Author:Patrick Brueckner
Date:2007-03-04 22:13:28

  1. BUG $parse->received; doesn't do...   Reply   Report abuse  
Patrick Brueckner - 2007-03-04 22:13:28
I wanted to use this class to extract all Received Lines from mails, and these are the received lines of my testmail:

Received: from ( [])
by (Postfix) with ESMTP id C504920032F5
for <>; Sun, 4 Mar 2007 22:37:09 +0100 (CET)
Received: from
by (Postfix) with SMTP id 5C10F3F6831
for <>; Sun, 4 Mar 2007 22:37:05 +0100 (CET)
Received: from [] by with HTTP;

but $parse->headers; only contains the last line. I'm not sure, wheter this is a problem of the regexp used to determine the lines, because this is the only single-lined received header or it is something else.

Anyhow, this seems to be a bug to me. Would be nice if someone had a look at it.

Kind Regards,