Re: Manuel Lemos's Pop3 Class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

on 01/15/2008 06:12 AM Max Frigge said the following:
> Thanks for your answer. In my case I have the IMAP extensions available, but
> more appropriate is always good  and after testing a bit more I start liking it. 
> 
> The mime parser would be my next step. 
> 
> But before I do that I have a general question about dealing with mails. 
> 
> Would you recommend to leave all mails on the pop server or download them to 
> the server where my web application is running and then access them from there?

POP3 was not thought to leave messages in the mailbox like IMAP. You may
leave the messages there but POP3 may not be able to handle too many
messages piling in the mailbox.


> I was thinking it is better do download them because it would be easier to manage
> them. For example mark them as read, answered and so forth. 
> 
> In case I download them to the server... would you rather store only the header 
> information in a DB (all info needed to display them in a list) and store the mails
> as .eml files or would you store them into a db as well?

It really depends on what you want to do.

The MIME parser class now has a function named Analyze that processes a
parsed message and returns a simplified associative array with just the
essencial information that describes your messages.

http://www.phpclasses.org/mimeparser


If you want to store the message structure in the database, you can just
store the serialized version of that array. If you do not want to store
the actual message parts in the database, you can just store them in files.


-- 

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux