PHP Classes

Suppress/Hide Decode function

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Suppress/Hide Decode function  >  (Un) Subscribe thread alerts  
Subject:Suppress/Hide Decode function
Summary:How do I hide/suppress results from Decode funciton?
Messages:5
Author:emas
Date:2008-07-27 02:12:54
Update:2008-07-27 04:58:06
 

  1. Suppress/Hide Decode function   Reply   Report abuse  
Picture of emas emas - 2008-07-27 02:12:54
Manuel, first of all thank you for this class.

Im an intermediate in php and would like to know on how to suppress or hide returned results on Decode function.

I've noticed that after this function below is called all decoded email contents are flushed.

$success=$mime->Decode($parameters, $decoded);

I might missed a parameter passed to disabled the flush. Sorry for this newbie question.

Thanks.

  2. Re: Suppress/Hide Decode function   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-07-27 02:41:13 - In reply to message 1 from emas
I am not sure what you mean. The presentation of the results of the Decode call are done in the example script using the var_dump() function, not in the class itself.

  3. Re: Suppress/Hide Decode function   Reply   Report abuse  
Picture of emas emas - 2008-07-27 03:41:46 - In reply to message 2 from Manuel Lemos
Manuel, thank you for the quick response.

Basically, I just need to be able to get the from address, to address, subject, and contents of the email when opening the sample browse_mailbox.php in a tabular form. But after this line $success=$mime->Decode($parameters, $decoded); there a a bunch of dump data in it. I was planning to go through the $decoded var to get all those, but after this code


I tried it by having this code.

$success=$mime->Decode($parameters, $decoded);
die('stop here');

There are a lot of dump data before the 'stop here' test when running it again.

Below is what I've got running the browse_mailbox.php.

...
There are 10 messages in the mail box with a total of 145819 bytes.

>>> after the line $success=$mime->Decode($parameters, $decoded); the dump data below will show.

C RETR 1
S +OK message follows
S Received: from localhost (localhost.localdomain [127.0.0.1])
... >>> more data in here
src="http://www.uptilt.com/images/mlopen_post.html?rtr=on&amp;siteid=4358&amp;mid=726291&amp;mlid=61545&amp;uid=217ab7dec8"> </BLOCKQUOTE><BR>
S --0-2009691272-1201912213=:63041--
S
S ------=_NextPart_000_0026_01C865B4.5EC13C60--
S
S .
stop here >>> this is the die('stop here');




I dont know if I am having a right questions on this. Sorry again for a newbie topic.

Thanks




  4. Re: Suppress/Hide Decode function   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-07-27 04:34:59 - In reply to message 3 from emas
That is debug output generated by the POP3 class. You need to disable debugging of that class, not of the MIME parser class.

  5. Re: Suppress/Hide Decode function   Reply   Report abuse  
Picture of emas emas - 2008-07-27 04:58:06 - In reply to message 4 from Manuel Lemos
Stupid me :) Thanks, Manuel.