CFIMAP tag extremely slow, any way to speed up?
I'm using ColdFusion 9's new CFIMAP tag to obtain a listing of messages in a Gmail Inbox. However, it is EXTREMELY slow. I am using the GetHeaderOnly method, and it is taking more than 60 seconds to return the list of messages. There are only 53 messages in my Inbox.
<cfimap action="open" server="imap.gmail.com" username="#settings.gmailusername#" password="#settings.gmailpassword#" connection="imapInit" port="993" secure="true" />
<cfimap action="getHeaderOnly" connection="imapInit" name="headersQry" folder="Inbox" />
If I add maxrows="5" to the getHeaderOnly call, it takes about 10 seconds. How can it possibly be this slow?
I used a Java library before (http://www.webtrenches.com/post.cfm/connecting-to-gmail-using-coldfusion) and it was much faster.
Am I doing something wrong here, or is CFIMAP horribly slow?
