Function: imap-quote-specials

imap-quote-specials is a byte-compiled function defined in imap.el.gz.

Signature

(imap-quote-specials STRING)

Source Code

;; Defined in /usr/src/emacs/lisp/net/imap.el.gz
(defun imap-quote-specials (string)
  (with-temp-buffer
    (insert string)
    (goto-char (point-min))
    (while (re-search-forward "[\\\"]" nil t)
      (forward-char -1)
      (insert "\\")
      (forward-char 1))
    (buffer-string)))