imap-opened

imap-opened is a compiled Lisp function in `imap.el'.

(imap-opened &optional BUFFER)

Return non-nil if connection to imap server in BUFFER is open.
If BUFFER is nil then the current buffer is used.