Hi,
i have another problem where i spend hours.
I want give the mime parser a Data String to parse. I get the String via pop3 like this:
if(($error=$pop3->RetrieveMessage(2,$headers,$body,-1))=="")
{
for($line=0;$line<count($headers);$line++)
{$message_file=$message_file.$headers[$line].chr(10).chr(13);}
for($line=0;$line<count($body);$line++)
{$message_file=$message_file.$body[$line].chr(10).chr(13);}
The problem was, i don't get parsed array strings, i get only one string like this:
["return-path:"]=>
string(656) "
X-Original-To:
[email protected]
Delivered-To:
[email protected]
Received: from h1093988.serverkompetenz.net (xxxxx.serverkompetenz.net [x.y.z.u])
by xxxx.serverkompetenz.net (Postfix) with SMTP id 03E6D2F4321
for ; Mon, 2 Apr 2007 13:47:42 +0200 (CEST)
Date: Mon, 02 Apr 2007 13:49:10 +0200 (CEST)
Errors-To:
From:
[email protected]
To:
[email protected]
Subject: asd
MIME-Version: 1.0
Message-ID:
X-Priority: 3
X-Mailer: nexxmail 1.2.2.17 [linux]
X-MAIL-FROM:
Content-Type: text/plain; charset="iso-8859-1""
}
["Parts"]=>
array(0) {
}
["BodyFile"]=>
string(52) "/srv/www/xxx.yyy.de/htdocs/data/mail/53/tmp/1"
["BodyPart"]=>
int(1)
["BodyLength"]=>
int(12)
How must i define the "Data" String for the parser ?
Greets Tom