PHP Classes

sort out messages

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  sort out messages  >  (Un) Subscribe thread alerts  
Subject:sort out messages
Summary:how to sort it out
Messages:62
Author:vlad
Date:2008-12-11 04:38:15
Update:2009-03-20 04:16:29
 
  1 - 10   11 - 20   21 - 30   31 - 40   41 - 50   51 - 60   61 - 62  

  21. Re: sort out messages   Reply   Report abuse  
Picture of vlad vlad - 2009-01-14 04:48:17 - In reply to message 20 from Manuel Lemos
i made a loop and was able to see all the emails at the page. it is good!
however sometimes i get this mistake

Error: Password error: maildrop already locked

?

  22. Re: sort out messages   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-01-14 04:54:18 - In reply to message 21 from vlad
That means that a somebody is accessing the same mailbox at the same time.

  23. Re: sort out messages   Reply   Report abuse  
Picture of vlad vlad - 2009-01-14 21:54:44 - In reply to message 22 from Manuel Lemos
thats right
thanks

now i can see all the messages at the page. also i can take headers and body...

im thinking now to put info into data base..

how would you do it?

i can do it right at the browse_mailbox.php, however user will see for a moment all the weird info at the page until php will do the job.

additionally
can $success=$mime->Decode($parameters, $decoded); work without displaying info at the page?



this stroke

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

displays at the page all the info with S on the left:
for example:::

.
.
.
.
S </head>
S <body style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px'><p style="margin:0px; padding:0px">this is body for first test message</p><br>
S <span style='font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 12px;'>Regards,<br />
S Vlad<br />
S <br /><br />
S
S
S <a href='http://www.axo.cc/'><img alt='Click to visit Web-site' src='cid:username' border='0'></a>
S <br><br>
S
S </body>
S </html>
S
S --b1_f70e59af542392af36fcfb8abf352d33
S Content-Type: application/octet-stream; name="images/vlad.gif"
S Content-Transfer-Encoding: base64
.
.
.


  24. Re: sort out messages   Reply   Report abuse  
Picture of vlad vlad - 2009-01-14 22:29:41 - In reply to message 23 from vlad
hello
i figured out how do not display the info i dont need..

$pop3->debug=0;

  25. Re: sort out messages   Reply   Report abuse  
Picture of vlad vlad - 2009-01-14 22:45:47 - In reply to message 24 from vlad
also i had a read around the forum about attachments (here it comes)

i use this:
$parameters=array(
'File'=>$message_file,

/* Read a message from a string instead of a file */
/* 'Data'=>'My message data string', */

/* Save the message body parts to a directory */
'SaveBody'=>'/tmp',

/* Do not retrieve or save message body parts */
'SkipBody'=>1,
);
it saves into /tmp some info but it is not attachments. there are just some files
1
2
3
that contain code of the attachments (i think)
how to retrieve and save real attachment?
thanks

  26. Re: sort out messages   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-01-14 23:26:17 - In reply to message 25 from vlad
Those files are the message body parts including any attachments that the messages may have.

  27. Re: sort out messages   Reply   Report abuse  
Picture of vlad vlad - 2009-01-15 00:40:11 - In reply to message 26 from Manuel Lemos
how to get then the picture attached from the code it looks?
thanks

  28. Re: sort out messages   Reply   Report abuse  
Picture of vlad vlad - 2009-01-15 03:25:49 - In reply to message 27 from vlad
im getting insane!
i was using some function from page
phpclasses.org/discuss/package/3169 ...
however it wasnt working with all emails (cos it is only for multiple email....)

now im trying to see the body message again somehow!
i understand that body goes to temporary file at the directory: tmp/1

i can retrieve this info by
$decoded[0]['Parts'][0]['BodyFile'];

i understand to see the body message (to see it on the page to put it to db then) i need to open this file tmp/1 and get the message?
but this file tmp/1 has no extension? how do i open it?

  29. Re: sort out messages   Reply   Report abuse  
Picture of vlad vlad - 2009-01-15 03:31:43 - In reply to message 28 from vlad
if i use fopen() it gives me
Resource id #19

  30. Re: sort out messages   Reply   Report abuse  
Picture of vlad vlad - 2009-01-15 03:39:39 - In reply to message 29 from vlad
/* Read a message from a string instead of a file */
'Data'=>'My message data string',

what does it mean? how can i use it maybe?

 
  1 - 10   11 - 20   21 - 30   31 - 40   41 - 50   51 - 60   61 - 62