Function: gnus-uu-mark-by-regexp

gnus-uu-mark-by-regexp is an autoloaded, interactive and byte-compiled function defined in gnus-uu.el.gz.

Signature

(gnus-uu-mark-by-regexp REGEXP &optional UNMARK)

Documentation

Set the process mark on articles whose subjects match REGEXP.

When called interactively, prompt for REGEXP. Optional UNMARK non-nil means unmark instead of mark.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/gnus-uu.el.gz
(defun gnus-uu-mark-by-regexp (regexp &optional unmark)
  "Set the process mark on articles whose subjects match REGEXP.
When called interactively, prompt for REGEXP.
Optional UNMARK non-nil means unmark instead of mark."
  (interactive "sMark (regexp): \nP" gnus-article-mode gnus-summary-mode)
  (save-excursion
    (let* ((articles (gnus-uu-find-articles-matching regexp))
	   (new-marked (gnus-new-processable unmark articles)))
      (while articles
	(if unmark
	    (gnus-summary-remove-process-mark (pop articles))
	  (gnus-summary-set-process-mark (pop articles))))
      (gnus-message-process-mark unmark new-marked)))
  (gnus-summary-position-point))