Function: mh-index-delete-from-sequence
mh-index-delete-from-sequence is an autoloaded and byte-compiled
function defined in mh-search.el.gz.
Signature
(mh-index-delete-from-sequence SEQ MSGS)
Documentation
Delete from SEQ the messages in MSGS.
This function updates the source folder sequences. Also makes an attempt to update the source folder buffer if present.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-search.el.gz
;;;###mh-autoload
(defun mh-index-delete-from-sequence (seq msgs)
"Delete from SEQ the messages in MSGS.
This function updates the source folder sequences. Also makes an
attempt to update the source folder buffer if present."
(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)
;; Remove messages from sequence in source folder...
(apply #'mh-exec-cmd-quiet nil "mark" folder
"-del" "-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-delete-msg-from-seq msgs seq t))))
(mh-index-matching-source-msgs msgs))
folders))))