Firstly thanks for your great pop3 and mime_parser class. I've been using your those classes in an application and which has been working great. But recently I've shifted my application on a new server and I strangely see that mime_parser's Decode method gives empty results. After that-
I've placed the browse_mailbox.php script on that server and find that it's also giving empty output.
Here I should mention that the servers all the ports are ok. Here I am giving you the page source of the output of browse_mailbox.php.
<title>Parsing a message with Manuel Lemos' PHP POP3 and MIME Parser classes</title>
<center><h1>Parsing a message with Manuel Lemos' PHP POP3 and MIME Parser classes</h1></center>
<b>Warning</b>: stream_wrapper_register() [<a href='function.stream-wrapper-register'>function.stream-wrapper-register</a>]: Protocol pop3:// is already defined. in <b>/home/primatex/public_html/helpdesk/app/webroot/test/poptest/browse_mailbox.php</b> on line <b>27</b><br />
Connecting to mail.codetrio.com ...<br />
S +OK Dovecot ready.<br />
<PRE>Connected to the POP3 server "mail.codetrio.com".</PRE>
C USER firstname.lastname@example.org<br />
S +OK<br />
C PASS hello+WORLD<br />
S +OK Logged in.<br />
<PRE>User "email@example.com" logged in.</PRE>
C STAT<br />
S +OK 1 11292<br />
<PRE>There are 1 messages in the mail box with a total of 11292 bytes.</PRE>
<h2>MIME message decoding successful</h2>
string(12) "Text message"
</pre>C QUIT<br />
S +OK Logging out.<br />
Closing connection.<br />
<PRE>Disconnected from the POP3 server "mail.codetrio.com".</PRE>
That was the page source for browse_mailbox.php script.
It's worthy to mention that your parse_message.php script is working properly on that server.
Manuel Lemos - 2013-07-25 12:29:48 - In reply to message 1 from Mushfiqur Rahman
It seems PHP comes with a stream wrapper also called pop3 so the POP3 stream wrapper needs to be named something else. Just replace the stream wrapper name pop3 on the script by mlpop3 . It should work.