Function: mh-collect-folder-names-filter
mh-collect-folder-names-filter is a byte-compiled function defined in
mh-utils.el.gz.
Signature
(mh-collect-folder-names-filter PROCESS OUTPUT)
Documentation
Read folder names.
PROCESS is the flists process that was run to collect folder names and the function is called when OUTPUT is available.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-utils.el.gz
(defun mh-collect-folder-names-filter (_process output)
"Read folder names.
PROCESS is the flists process that was run to collect folder
names and the function is called when OUTPUT is available."
(let ((position 0)
(prevailing-match-data (match-data))
line-end folder)
(unwind-protect
(while (setq line-end (string-search "\n" output position))
(setq folder (format "+%s%s"
mh-flists-partial-line
(substring output position line-end)))
(setq mh-flists-partial-line "")
(unless (equal (aref folder 1) ?.)
(mh-populate-sub-folders-cache folder))
(setq position (1+ line-end)))
(set-match-data prevailing-match-data))
(setq mh-flists-partial-line (substring output position))))