Function: mh-pick-parse-search-buffer
mh-pick-parse-search-buffer is a byte-compiled function defined in
mh-search.el.gz.
Signature
(mh-pick-parse-search-buffer)
Documentation
Parse the search buffer contents.
The function returns an alist. The car of each element is either the header name to search in or nil to search the whole message. The cdr of the element is the pattern to search.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-search.el.gz
(defun mh-pick-parse-search-buffer ()
"Parse the search buffer contents.
The function returns an alist. The car of each element is either
the header name to search in or nil to search the whole message.
The cdr of the element is the pattern to search."
(save-excursion
(let ((pattern-list ())
(in-body-flag nil)
start begin)
(goto-char (point-min))
(while (not (eobp))
(if (search-forward "--------" (line-end-position) t)
(setq in-body-flag t)
(beginning-of-line)
(setq begin (point))
(setq start (if in-body-flag
(point)
(search-forward ":" (line-end-position) t)
(point)))
(push (cons (and (not in-body-flag)
(intern (downcase
(buffer-substring-no-properties
begin (1- start)))))
(mh-index-parse-search-regexp
(buffer-substring-no-properties
start (line-end-position))))
pattern-list))
(forward-line))
pattern-list)))