Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.8

Bug #3141 $pop3->getListing() returns empty fields
Submitted: 2005-01-08 22:54 UTC
From: culmat at gmx dot net Assigned: damian
Status: Closed Package: Net_POP3
PHP Version: 4.3.10 OS: win xp
Roadmaps: (Not assigned)    

 [2005-01-08 22:54 UTC] culmat at gmx dot net
Description: ------------ bug happens with some servers, when no mail is on account is an example there are some incorrect pop3 server implementations out there that will answer on UIDL and LIST on empty account with a multiline response like this: > telnet 110 +OK GMX POP3 StreamProxy ready <32601.1105223122@mp014> USER +OK May I have your password, please? PASS ************** +OK mailbox has 0 messages (0 octets) STAT +OK 0 0 list +OK mailbox has 0 messages (0 octets) . uidl +OK mailbox has 0 messages (0 octets) . QUIT The actual implementation of $pop3->getListing() (scans the line with only a point ? and )returns and array with only one element, all fields are empty here is the pop3.php version number $Id: POP3.php,v 1.2 2004/12/05 16:34:39 damian Exp $ Reproduce code: --------------- ... [connect to pop3 server, login] $listing = $pop3->getListing(); print_r($listing); .... Expected result: ---------------- Array ( ) Actual result: -------------- Array ( [0] => Array ( [msg_id] => [size] => [uidl] => ) )


 [2005-02-02 15:48 UTC] damian
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at