The non-ssl version wasn't checking the gmail account, it was checking another, non-ssl email I have. The non-ssl code worked perfectly on the non-ssl server. The only changes I made to the code to make it ssl are in the /getmail alias. I added code to allow switches (which are removed) and then and $iif tests for the -e switch and adds it to the /sockopen if it is present, otherwise it remains as a non-ssl socket.
BTW, I'm not *really* looking to check/retrieve my gmail, as I never actually use gmail. I just wanted to try out the new ssl sockets.
@hixxy: That happened to me once too. (May be another symptom of the same bug.) Try restarting mIRC and running it again (several times). There don't even necessarily need to be emails on the account, as the code will connect, see that there are no emails, and disconnect. The lockups were happening both when there were emails, and when there were none.
-genius_at_work