hi programmer of class-pop3.php on sourceforge.net,
I came across this looking for a pop3 script. After
4 hours of debugging i found a bug.
the method pop_list is not implemented correctly.
The last “.” should also be read from $fp.
I came across this, because I used the method “pop_list” and
then foreach’ed the array using the method “top”
afterwards. But I always didn’t get the first message correctly
(just a “.” nothing else)
So attached is the fixed class a testscript.
Feel free to use it, just add your settings in the first 5 line
This works well, but if you use the class checked in the CVS
or the current WORDPRESS class the error will occur in the first
message (script will not be able to get the first message).
I found you email making a little walk outgoing from the blog
for wordpress. Would you please so kind to redirect the bugfix
to the project whom it may concern.
Just one line at the end of method
/* and also get the last line -> the “.” */
$line = fgets($fp,$this->BUFFER);
Viewing 1 replies (of 1 total)
The topic ‘Bug in class-pop3.php’ is closed to new replies.