Function: mh-index-add-to-sequence
mh-index-add-to-sequence is an autoloaded and byte-compiled function
defined in mh-search.el.gz.
Signature
(mh-index-add-to-sequence SEQ MSGS)
Documentation
Add to SEQ the messages in the list MSGS.
This function updates the source folder sequences. Also makes an attempt to update the source folder buffer if we have it open.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-search.el.gz
;;;###mh-autoload
(defun mh-index-add-to-sequence (seq msgs)
"Add to SEQ the messages in the list MSGS.
This function updates the source folder sequences. Also makes an
attempt to update the source folder buffer if we have it open."
;; Don't need to do anything for cur
(save-excursion
(when (and (not (memq seq (mh-unpropagated-sequences)))
(mh-valid-seq-p seq))
(let ((folders ())
(mh-speed-flists-inhibit-flag t))
(maphash (lambda (folder msgs)
(push folder folders)
;; Add messages to sequence in source folder...
(apply #'mh-exec-cmd-quiet nil "mark" folder
"-add" "-nozero" "-sequence" (symbol-name seq)
(mapcar (lambda (x) (format "%s" x))
(mh-coalesce-msg-list msgs)))
;; Update source folder buffer if we have it open...
(when (get-buffer folder)
(with-current-buffer folder
(mh-put-msg-in-seq msgs seq))))
(mh-index-matching-source-msgs msgs))
folders))))