I've been looking around and keep on finding the line:
imap.Connect("imap.gmail.com", 993, null, ImapSecurity.Implicit);
However in the library that I downloaded from http://www.rebex.net/secure-mail.net/features-imap.aspx, the vs2008 version, I only could find the call
Without the subsequent arguments. I've tried connecting however rebex keeps timing out, though I've connected with telnet without timing out.