Login   Register  
PHP Classes
elePHPant
Icontem

Documentation

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      POP3 e-mail client  >  All threads  >  Documentation  >  (Un) Subscribe thread alerts  
Subject:Documentation
Summary:documentation
Messages:6
Author:Eugene Gordeev
Date:2012-10-10 17:29:59
Update:2012-10-11 12:33:02
 

  1. Documentation   Reply   Report abuse  
Picture of Eugene Gordeev
Eugene Gordeev
2012-10-10 17:29:59
Hi!
A big big thank for that work! It really helps a lot.
Could u please tell, where I can find documentation for it, I mean the listing of it's methods.

Thanks in advance.

  2. Re: Documentation   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-10-10 20:56:38 - In reply to message 1 from Eugene Gordeev
Currently there is no separate documentation. I may add it later.

Meanwhile you can check the class source, as the public functions have comments explaining its parameters.

  3. Re: Documentation   Reply   Report abuse  
Picture of Eugene Gordeev
Eugene Gordeev
2012-10-10 22:04:51 - In reply to message 2 from Manuel Lemos
Thanks for answering :)

I've done it, but still don't understand what is the unique id of messages.

  4. Re: Documentation   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-10-11 00:12:15 - In reply to message 3 from Eugene Gordeev
The unique ID of messages is an identifier of each message that is unique among all received messages, in the past or future.

All messages are referenced by message number, but if for some reason you close and and reopen the POP3 server connection, message numbers may change.

So you only need to care about message unique ids if for some reason you need to access the same message in multiple distinct connections. If that is not the case, you can just reference messages by number.

  5. Re: Documentation   Reply   Report abuse  
Picture of Eugene Gordeev
Eugene Gordeev
2012-10-11 11:38:03 - In reply to message 4 from Manuel Lemos
Thank you for that explanation!

Cause I really started to think, that this unique id is static for every message in inbox, and it doesn't change untill it'll be deleted from the server.

So, how do you think what way is better to differ one message from another?
Maybe keeping in database size of message + time when it was received converted to integer.

My script has to be run almost everyday for parsing mailbox and retrieving from it new messages.

By the way, could you please give a little bit more explanation for mime_parser->readMessageBody. What is the prefix parameter? And what type is message parameter?

  6. Re: Documentation   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-10-11 12:33:03 - In reply to message 5 from Eugene Gordeev
The unique id is fixed for each message every time you login the mailbox. What may be different is the message number. You can use the unique id to reference messages in the mailbox forever.

The ReadMessageBody is private and so it is not documented. Therefore you should not call it directly. Read the documentation to see which functions you can call.