Variable: message-subject-trailing-was-regexp

message-subject-trailing-was-regexp is a customizable variable defined in message.el.gz.

Value

"[      ]*\\((*[Ww][Aa][Ss]:.*)\\)"

Documentation

Regexp matching "(was: <old subject>)" in the subject line.

If message-subject-trailing-was-query is set to t, the subject is matched against message-subject-trailing-was-regexp in message-strip-subject-trailing-was. You should use a regexp creating very few false positives here.

This variable was added, or its default value changed, in Emacs 22.1.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defcustom message-subject-trailing-was-regexp
  "[ \t]*\\((*[Ww][Aa][Ss]:.*)\\)"
  "Regexp matching \"(was: <old subject>)\" in the subject line.

If `message-subject-trailing-was-query' is set to t, the subject is
matched against `message-subject-trailing-was-regexp' in
`message-strip-subject-trailing-was'.  You should use a regexp creating very
few false positives here."
  :version "22.1"
  :group 'message-various
  :link '(custom-manual "(message)Message Headers")
  :type 'regexp)