Added var $imap_server_type, usage is in the comments. Need to see if I need to...