Function: imap-ping-server

imap-ping-server is a byte-compiled function defined in imap.el.gz.

Signature

(imap-ping-server &optional BUFFER)

Documentation

Ping the IMAP server in BUFFER with a "NOOP" command.

Return non-nil if the server responds, and nil if it does not respond. If BUFFER is nil, the current buffer is used.

Source Code

;; Defined in /usr/src/emacs/lisp/net/imap.el.gz
(defun imap-ping-server (&optional buffer)
  "Ping the IMAP server in BUFFER with a \"NOOP\" command.
Return non-nil if the server responds, and nil if it does not
respond.  If BUFFER is nil, the current buffer is used."
  (condition-case ()
      (imap-ok-p (imap-send-command-wait "NOOP" buffer))
    (error nil)))