Function: mh-delete-subject

mh-delete-subject is an autoloaded, interactive and byte-compiled function defined in mh-limit.el.gz.

Signature

(mh-delete-subject)

Documentation

Delete messages with same subject.

To delete messages faster, you can use this command to delete all the messages with the same subject as the current message. This command puts these messages in a sequence named "subject". You can undo this action by using u (mh-undo) with a prefix argument and then specifying the "subject" sequence.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-limit.el.gz
;;; MH-Folder Commands

;; Alphabetical.

;;;###mh-autoload
(defun mh-delete-subject ()
  "Delete messages with same subject\\<mh-folder-mode-map>.

To delete messages faster, you can use this command to delete all
the messages with the same subject as the current message. This
command puts these messages in a sequence named \"subject\". You
can undo this action by using \\[mh-undo] with a prefix argument
and then specifying the \"subject\" sequence."
  (interactive)
  (let ((count (mh-subject-to-sequence nil)))
    (cond
     ((not count)                       ; No subject line, delete msg anyway
      (mh-delete-msg (mh-get-msg-num t)))
     ((= 0 count)                       ; No other msgs, delete msg anyway.
      (message "No other messages with same Subject following this one")
      (mh-delete-msg (mh-get-msg-num t)))
     (t                                 ; We have a subject sequence.
      (message "Marked %d messages for deletion" count)
      (mh-delete-msg 'subject)))))