]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
emacs: only strip "re:" in the beginning of subject
[notmuch] / emacs / notmuch-show.el
index d318430cdc842c71acf8acab6262c46d066d732b..36cad93319776491b73019060919c98d3b03f3e2 100644 (file)
@@ -819,7 +819,7 @@ message at DEPTH in the current thread."
   (make-symbol (concat "notmuch-show-" type)))
 
 (defun notmuch-show-strip-re (string)
-  (replace-regexp-in-string "\\([Rr]e: *\\)+" "" string))
+  (replace-regexp-in-string "^\\([Rr]e: *\\)+" "" string))
 
 (defvar notmuch-show-previous-subject "")
 (make-variable-buffer-local 'notmuch-show-previous-subject)