mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 10:54:52 +01:00
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.
This commit is contained in:
parent
e6d31a5435
commit
e845f4e27e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue