<div dir="ltr">Hi Folks,<br><br>I&#39;m implementing a web based interface to an IMAP server.My idea is simple as in my web client sending a request to the python script in cgi-bin running apache .The python script in turn fetches from the IMAP and sends back JSON data to the web client.<br>

<br>Here I want my python script to use twisted&#39;s IMAP&#39;s implementation .In general ,everytime I send a request to the IMAP server, it sends the data of the entire folder back which becomes a memory /bandwidth hog.What I&#39;m looking for is something like the connection pool in the adbapi module.I did take deferred into consideration but what I&#39;m looking for is a way to reduce the number of connections being open to the IMAP server and trying to reuse the same old connection instead of opening a new connection every time a folder is refreshed &nbsp; .The reason is that our IMAP severs run on very slow compuers and I don&#39;t want the IMAP server to thrash the entire hard disk.<br>
<br>If the same could be done by deferred ,how would it be ?<br><br>Regards,<br>Wiki<br>
</div>