Function: mh-folder-exists-p
mh-folder-exists-p is a byte-compiled function defined in
mh-search.el.gz.
Signature
(mh-folder-exists-p FOLDER)
Documentation
Check if FOLDER exists.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-search.el.gz
(defun mh-folder-exists-p (folder)
"Check if FOLDER exists."
(and (mh-folder-name-p folder)
(save-excursion
(with-temp-buffer
(mh-exec-cmd-output "folder" nil "-fast" "-nocreate" folder)
(goto-char (point-min))
;; Strip + from folder; use optional + in regexp.
(looking-at (format "+?%s" (substring folder 1)))))))