IMAP suggestions

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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?

Re: IMAP suggestions


You can use a caching IMAP proxy like up-imapproxy (
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


John Peters

Quoted text here. Click to load it

Site Timeline