IMAP suggestions

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-27-2008
Hugh Oxford
 
Posts: n/a
Default IMAP suggestions

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?
Reply With Quote
  #2 (permalink)  
Old 05-27-2008
petersprc
 
Posts: n/a
Default Re: IMAP suggestions

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?


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0