[PATCH] WIP: remove all non-prefixed-terms (and stemmed versions)
[notmuch-archives.git] / 1b / 7ca35fda092f958ecd4a8d59c9371db7c13e05
1 Return-Path: <geoffrey.ferrari@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 45942430ACB\r
6         for <notmuch@notmuchmail.org>; Thu,  8 Aug 2013 13:30:21 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id b0Cu8vUMUPRX for <notmuch@notmuchmail.org>;\r
17         Thu,  8 Aug 2013 13:30:16 -0700 (PDT)\r
18 Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com\r
19  [74.125.83.43])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  3193049B9E9    for <notmuch@notmuchmail.org>; Thu,  8 Aug 2013 04:35:51 -0700\r
22  (PDT)\r
23 Received: by mail-ee0-f43.google.com with SMTP id e52so1452699eek.2\r
24         for <notmuch@notmuchmail.org>; Thu, 08 Aug 2013 04:35:48 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=sender:from:to:cc:subject:date:message-id;\r
27         bh=Ei5t4DgOvF6HsCKKDfWQeShwrQQ8SnTeBVlF73op82s=;\r
28         b=YpI9u42FXrqJo2nrRFUhzc4pXQ73f9R4KMCyH3cYdJpOnGpmM3snFwFAwiprULFXIk\r
29         5k2KoVYea5wfQcHOCwkd7MaUwa/SDPnzPADR/vW76xlAfsmXhvppJNOoEvpf2KP3jtZm\r
30         G/fKMc0N4dgWlJhv16P72MiMQeEvCMUO6lnQdIVJi37D8VtNC1pf0LrNX8LckevJGbsw\r
31         kqBNdY7gPiiOqisK0zqJN8DqVUpL4icK6adm2ewpcgwCtqgIrqICjRiEDy++OwsXYyrs\r
32         4KC7TmaOgOyzbQIfuFzLi5CXTJFjF252A9j6KBJKTfVKLDw+WS2/QOYJLEll6KS1r5XC\r
33         7eGw==\r
34 X-Received: by 10.14.2.200 with SMTP id 48mr2287416eef.58.1375961748342;\r
35         Thu, 08 Aug 2013 04:35:48 -0700 (PDT)\r
36 Received: from lindy.local (cpc4-oxfd20-2-0-cust69.4-3.cable.virginmedia.com.\r
37         [86.26.58.70])\r
38         by mx.google.com with ESMTPSA id a1sm18450990eem.1.2013.08.08.04.35.45\r
39         for <multiple recipients>\r
40         (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128);\r
41         Thu, 08 Aug 2013 04:35:47 -0700 (PDT)\r
42 Sender: Geoffrey Ferrari <geoffrey.ferrari@gmail.com>\r
43 From: Geoffrey Ferrari <geoffrey.ferrari@oriel.oxon.org>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH] emacs: bugfix notmuch-mua-reply when signature is present\r
46 Date: Thu,  8 Aug 2013 12:35:32 +0100\r
47 Message-Id:\r
48  <1375961732-14327-1-git-send-email-geoffrey.ferrari@oriel.oxon.org>\r
49 X-Mailer: git-send-email 1.7.10.4\r
50 X-Mailman-Approved-At: Thu, 08 Aug 2013 23:01:44 -0700\r
51 Cc: "Geoffrey H. Ferrari" <geoffrey.ferrari@oriel.oxon.org>\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Thu, 08 Aug 2013 20:30:21 -0000\r
65 \r
66 From: "Geoffrey H. Ferrari" <geoffrey.ferrari@oriel.oxon.org>\r
67 \r
68 When composing a reply, notmuch-mua-reply tries to be smart and cite\r
69 the original message by inserting it before the user signature, if\r
70 one is present. However, the existing method of backward searching\r
71 from the end of the buffer to find the signature separator and then\r
72 moving one line up results in the original message being cited in\r
73 the message headers. That's because at this point the message looks\r
74 like this (with | representing point after searching for the\r
75 signature separator):\r
76 \r
77 From: xxx\r
78 To: xxx\r
79 Subject: xxx\r
80 --text follows this line--\r
81 |--\r
82 My fancy signature\r
83 \r
84 With this patch, a newline is opened instead, so that the orignal\r
85 message is cited above the signature but still in the message text.\r
86 ---\r
87  emacs/notmuch-mua.el |    2 +-\r
88  1 file changed, 1 insertion(+), 1 deletion(-)\r
89 \r
90 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
91 index 2baae5f..86f164d 100644\r
92 --- a/emacs/notmuch-mua.el\r
93 +++ b/emacs/notmuch-mua.el\r
94 @@ -194,7 +194,7 @@ list."\r
95        ;; if one is present\r
96        (goto-char (point-max))\r
97        (if (re-search-backward message-signature-separator nil t)\r
98 -         (forward-line -1)\r
99 +         (newline)\r
100         (goto-char (point-max)))\r
101  \r
102        (let ((from (plist-get original-headers :From))\r
103 -- \r
104 1.7.10.4\r
105 \r