Function: nnmail-remove-list-identifiers
nnmail-remove-list-identifiers is a byte-compiled function defined in
nnmail.el.gz.
Signature
(nnmail-remove-list-identifiers)
Documentation
Remove list identifiers from Subject headers.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/nnmail.el.gz
(defun nnmail-remove-list-identifiers ()
"Remove list identifiers from Subject headers."
(let ((regexp
(if (consp nnmail-list-identifiers)
(mapconcat #'identity nnmail-list-identifiers " *\\|")
nnmail-list-identifiers)))
(when regexp
(goto-char (point-min))
(while (re-search-forward
(concat "^Subject: +\\(R[Ee]: +\\)*\\(" regexp " *\\)")
nil t)
(delete-region (match-beginning 2) (match-end 0))
(beginning-of-line))
(when (re-search-forward "^Subject: +\\(\\(R[Ee]: +\\)+\\)R[Ee]: +"
nil t)
(delete-region (match-beginning 1) (match-end 1))
(beginning-of-line)))))