|
From: Mario A. <mar...@as...> - 2005-10-17 00:50:37
|
Hello everyone
First of all: I am very pleased with the excellent work being done with the
phplibextreme! This is what I have been looking for. It is a pity that this
super product is not used more often.
I use V1.10. I have the following problem with the pop3_get_mail function:
* When retrieving mail data, then the data gets cut off.
* It is even possible, that the output to the web page is corrupted,
not completed.
* This only happens with a large mailbox (> 4 MB with about 180 Mail
entries) and mails from different sources
* I used the supplied test program to verify the functionality
$i = 1;
echo "<br><b>Single Mail Unique key:
</b>".$mail->pop3_get_mail_key($i)."<br>";
echo "<b>Mail single info: </b>".$mail->pop3_get_mail_info($i)."<br>";
echo "<b>Single mail size: </b>".$mail->pop3_get_mail_size($i)."<br>";
$data = $mail->pop3_get_mail($i);
echo "<b>Mail data (".strlen($data)."): </b><br>".$data."<br><br>";
This produces output like:
Single Mail Unique key: `b3!!JZ]"!&C&#!@@\"!
Mail single info: 1 19920
Single mail size: 19920
Mail data (814):
Return-Path: Received: from asclx9.asconsult.ch (asclx9.asconsult.ch
[10.20.1.118]) by asclx1.asconsult.ch (8.11.6/8.11.6/SuSE Linux 0.5) with
ESMTP id j98Nibl15589 for ; Sun, 9 Oct 2005 01:44:42 +0200 Received: by
asclx9.asconsult.ch (Postfix) id 53B2EEB164; Sun, 9 Oct 2005 01:45:16 +0200
(CEST) Date: Sun, 9 Oct 2005 01:45:16 +0200 (CEST) From:
MAI...@as... (Mail Delivery System) Subject: Undelivered
Mail Returned to Sender To: ma...@te... MIME-Version: 1.0 Content-Type:
multipart/report; report-type=delivery-status;
boundary="A78ACEB1D2.1128815116/asclx9.absender.ch"
Content-Transfer-Encoding: 8bit Message-Id:
<200...@as...> X-UIDL: `b3!!JZ]"!&C&#!@@\"!
Status: RO message should continue here and is missing
If I use a mail program (outlook, webmail), then I can retrieve the mails
without difficulty. I have tried the following: Using a mail and generating
a large mailbox with many entries (append to the mailbox) does not result in
an error.
I also found some difficulties with the UIDL identifier:
With a very small loop I tried to read the UIDL info:
for ($i=1;$i<177;$i++) {
echo "<b>$i: </b>".$mail->pop3_get_mail_key($i)."<br>";
}
And I got:
111: (:i"!R*V"!=T?"!K8J"!
112:
113: [[(!!h4,!!+)>"!H*I"!
114: ';@!!~`2!!JK>!!-[@!!
- - - -
120: 7121: VV*"!&Z&!!o`9!!G7W!!
122: 9,1"!"iY"!W]d"!Z5l!!
- - - -
126: /;g"!@Qm"!P;O"!+\127: m>*!!k[S!!f/-!!]1'"!
128: j3-!!*i`!!>~Z!!3e+!!
129:
130: W`*!!:U$#!W9~!!D=""!
Pop3_get_stream information:
[PHPLIBEX] Received socket data in fsocket->get_socketdata: "+OK 111
(:i"!R*V"!=T?"!K8J"! "
[PHPLIBEX] Send socket data: "UIDL 112 " to 10.20.1.119 in
fsocket->fsocket_send_socketdata()
[PHPLIBEX] Received socket data in fsocket->get_socketdata: "+OK 112
[PHPLIBEX] Send socket data: "UIDL 113 " to 10.20.1.119 in
fsocket->fsocket_send_socketdata()
[PHPLIBEX] Received socket data in fsocket->get_socketdata: "+OK 113
[[(!!h4,!!+)>"!H*I"! "
- - - - -
PHPLIBEX] Send socket data: "UIDL 120 " to 10.20.1.119 in
fsocket->fsocket_send_socketdata()
[PHPLIBEX] Received socket data in fsocket->get_socketdata: "+OK 120
7[PHPLIBEX] Send socket data: "UIDL 121 " to 10.20.1.119 in
fsocket->fsocket_send_socketdata()
[PHPLIBEX] Received socket data in fsocket->get_socketdata: "+OK 121
VV*"!&Z&!!o`9!!G7W!! "
[PHPLIBEX] Send socket data: "UIDL 122 " to 10.20.1.119 in
fsocket->fsocket_send_socketdata()
[PHPLIBEX] Received socket data in fsocket->get_socketdata: "+OK 122
9,1"!"iY"!W]d"!Z5l!! "
[PHPLIBEX] Send socket data: "UIDL 126 " to 10.20.1.119 in
fsocket->fsocket_send_socketdata()
[PHPLIBEX] Received socket data in fsocket->get_socketdata: "+OK 126
/;g"!@Qm"!P;O"!+\[PHPLIBEX] Send socket data: "UIDL 127 " to 10.20.1.119 in
fsocket->fsocket_send_socketdata()
[PHPLIBEX] Received socket data in fsocket->get_socketdata: "+OK 127
m>*!!k[S!!f/-!!]1'"! "
[PHPLIBEX] Send socket data: "UIDL 128 " to 10.20.1.119 in
fsocket->fsocket_send_socketdata()
Now, I do not know what the problem could be. I kept the mailbox for testing
(just in case).
Did anyone see this error before?
Thanks for your help!
Mario
|