By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,281 Members | 2,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,281 IT Pros & Developers. It's quick & easy.

IMAP suggestions

P: n/a
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?
Jun 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.comwrote:
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?
Jun 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.