This is a discussion on IMAP suggestions within the PHP Language forums, part of the PHP Programming Forums category; I am building a mail app, which includes a lot of classes. The classes all inherit from a base class ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am building a mail app, which includes a lot of classes. The classes
all inherit from a base class which opens a connection to the imap server so that it's easy to get messages, etc. Can anyone suggest the best way of maintaining a persistent stream so I don't have to keep reopening the connection to the server? |
|
|||
|
Hi,
You can use a caching IMAP proxy like up-imapproxy (freshmeat.net/ projects/imapproxy/). This is suggested to ease high load with webmail clients like SquirrelMail or horde. Alternatively, you could just cache the mailbox headers and invalidate it based on imap_status / imap_check. Downloading headers usually takes the most time, but if you want to persist the socket, you can cook something up with Net_IMAP and pfsockopen. Regards, John Peters On May 27, 11:44 am, Hugh Oxford <ares...@fas.com> wrote: > I am building a mail app, which includes a lot of classes. The classes > all inherit from a base class which opens a connection to the imap > server so that it's easy to get messages, etc. > > Can anyone suggest the best way of maintaining a persistent stream so I > don't have to keep reopening the connection to the server? |