Function: imap-plain-auth

imap-plain-auth is a byte-compiled function defined in imap.el.gz.

Signature

(imap-plain-auth BUFFER)

Documentation

Login to server using the AUTH=PLAIN command.

Source Code

;; Defined in /usr/src/emacs/lisp/net/imap.el.gz
(defun imap-plain-auth (buffer)
  "Login to server using the AUTH=PLAIN command."
  (message "imap: PLAIN authentication...")
  (imap-interactive-login
   buffer
   (lambda (user passwd)
     (imap-ok-p
      (imap-send-command-wait
       (concat "AUTHENTICATE PLAIN "
               (base64-encode-string
                (format "\000%s\000%s"
                        (imap-quote-specials user)
                        (imap-quote-specials passwd)))))))))