message-strip-subject-trailing-was
message-strip-subject-trailing-was is a compiled Lisp function in `message.el
'.
(message-strip-subject-trailing-was SUBJECT)
Remove trailing "(was: <old subject>)" from SUBJECT lines.
Leading "Re: " is not stripped by this function. Use the function
`message-strip-subject-re' for this.