"Fixed" it by changing this
proc connect*(imap: ImapClient; host: string, port = imapPort) {.async} =
## Establish a connection to an IMAP server
await imap.sock.connect(host, port)
await imap.checkOk()
Run
to this
proc connect*(imap: ImapClient; host: string, port = imapPort) {.async} =
## Establish a connection to an IMAP server
waitFor imap.sock.connect(host, port)
waitFor imap.checkOk()
Run
