Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 69C0040DAC3 for ; Mon, 8 Nov 2010 02:51:45 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UT6f0zn3WY9k for ; Mon, 8 Nov 2010 02:51:35 -0800 (PST) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by olra.theworths.org (Postfix) with ESMTP id D697D4196F0 for ; Mon, 8 Nov 2010 02:51:34 -0800 (PST) Received: by wyb40 with SMTP id 40so5751614wyb.26 for ; Mon, 08 Nov 2010 02:51:34 -0800 (PST) Received: by 10.227.72.196 with SMTP id n4mr5073116wbj.153.1289213493803; Mon, 08 Nov 2010 02:51:33 -0800 (PST) Received: from ut.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com [81.149.164.25]) by mx.google.com with ESMTPS id x65sm2995803weq.25.2010.11.08.02.51.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Nov 2010 02:51:33 -0800 (PST) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id 9D3D459405B; Mon, 8 Nov 2010 10:50:30 +0000 (GMT) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH] emacs: Simplify subjects more aggressively. Date: Mon, 8 Nov 2010 10:50:29 +0000 Message-Id: <1289213429-24824-1-git-send-email-dme@dme.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1289213048-24332-1-git-send-email-dme@dme.org> References: <1289213048-24332-1-git-send-email-dme@dme.org> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Nov 2010 10:51:45 -0000 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. --- 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 efcb335..08654f1 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -408,7 +408,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) -- 1.7.2.3