Function: imap-search
imap-search is a byte-compiled function defined in imap.el.gz.
Signature
(imap-search PREDICATE &optional BUFFER)
Source Code
;; Defined in /usr/src/emacs/lisp/net/imap.el.gz
;; FIXME: Should this try to use CHARSET? -- fx
(defun imap-search (predicate &optional buffer)
(with-current-buffer (or buffer (current-buffer))
(imap-mailbox-put 'search 'dummy)
(when (imap-ok-p (imap-send-command-wait (concat "UID SEARCH " predicate)))
(if (eq (imap-mailbox-get-1 'search imap-current-mailbox) 'dummy)
(progn
(message "Missing SEARCH response to a SEARCH command (server not RFC compliant)...")
nil)
(imap-mailbox-get-1 'search imap-current-mailbox)))))