diff options
author | David Edmondson <dme@dme.org> | 2010-11-08 10:50:29 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-11-11 17:04:35 -0800 |
commit | e845f4e27e67208c95def4ee2601568b8d81a12e (patch) | |
tree | 795d2cbf91d341b0f7ab8c0194ffe6e5a85f1717 | |
parent | e6d31a54355dbc4080392c1d81f3e91cc9abb06a (diff) |
emacs: Simplify subjects more aggressively.
Remove 're: ' or 'Re: ' from anywhere within a subject line rather
than just at the beginning. This is to accommodate threads where a
mailing list sometimes inserts a subject prefix.
For example, if a thread has the subjects:
[Orgmode] org-indent, org-inlinetask: patches on github
Re: [Orgmode] org-indent, org-inlinetask: patches on github
[Orgmode] Re: org-indent, org-inlinetask: patches on github
the last of these would not have been considered the same and would
therefore have been shown.
-rw-r--r-- | emacs/notmuch-show.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 9c5c3cc..3a394d0 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -382,7 +382,7 @@ current buffer, if possible." (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) |