Re: notmuch-emacs should correctly handle signature status on reply
[notmuch-archives.git] / d6 / 0c63d30d6542719fe4957546df15489e8efe97
1 Return-Path: <sojkam1@fel.cvut.cz>\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 2B3E340B960\r
6         for <notmuch@notmuchmail.org>; Fri, 16 Jul 2010 02:22:15 -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: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id Su7Ld54UiTc5 for <notmuch@notmuchmail.org>;\r
16         Fri, 16 Jul 2010 02:22:03 -0700 (PDT)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id 00F7940B95B\r
19         for <notmuch@notmuchmail.org>; Fri, 16 Jul 2010 02:22:02 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id A567319F33E6;\r
22         Fri, 16 Jul 2010 11:22:00 +0200 (CEST)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id ODCbx5LnwsvT; Fri, 16 Jul 2010 11:21:59 +0200 (CEST)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id 44C2819F340B;\r
30         Fri, 16 Jul 2010 11:21:59 +0200 (CEST)\r
31 Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 20C6E15C027;\r
34         Fri, 16 Jul 2010 11:21:58 +0200 (CEST)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.72)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1OZh7G-0000Ab-8z; Fri, 16 Jul 2010 11:21:58 +0200\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: Dmitry Monakhov <dmonakhov@openvz.org>, notmuch@notmuchmail.org\r
40 Subject: Re: couple of naive questions about search patterns\r
41 In-Reply-To: <87vd8ra4jp.fsf@dmon-lap.sw.ru>\r
42 References: <87vd8ra4jp.fsf@dmon-lap.sw.ru>\r
43 User-Agent: Notmuch/0.3.1-79-g0637275 (http://notmuchmail.org) Emacs/23.2.1\r
44         (x86_64-pc-linux-gnu)\r
45 Date: Fri, 16 Jul 2010 11:21:58 +0200\r
46 Message-ID: <87mxtr6atl.fsf@steelpick.2x.cz>\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain; charset=us-ascii\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Fri, 16 Jul 2010 09:22:15 -0000\r
62 \r
63 On Wed, 07 Jul 2010, Dmitry Monakhov wrote:\r
64 > I want to tag new patches, but not replay messages.\r
65 > I've tried to do it like this:\r
66 > notmuch tag +patch-new "tag:inbox and subject:'patch' \\r
67 >                         and not subject:'re:'"\r
68 > but last rule (subject:'re:') seems to be ignored, as soon as i\r
69 > understand this happens because pattern 're:' is too short.\r
70 > Am i right? \r
71 \r
72 No, this is because 're:' in subject is not indexed. See\r
73 skip_re_in_subject() in index.cc.\r
74 \r
75 > Are any other ways to accomplish this task? \r
76 \r
77 A possible way would be to use an external script to find the messages\r
78 you want to tag. Roughly something like\r
79 \r
80  notmuch tag +patch-new $(notmuch show tag:inbox and subject:'patch'|\\r
81                           grep -o 'filename:[^ ]*'|\\r
82                           while read fn; do fn=${fn#filename:};\\r
83                             grep -q '^Subject: \[PATCH\]' $fn && grep -i ^Message-ID: $fn|\\r
84                             sed -e 's/.*<\(.*\)>/id:\1/'; \\r
85                           done)\r
86 \r
87 There was also a discussion around\r
88 http://mid.gmane.org/87ochrdpjy.fsf@wsheee.2x.cz for adding some new\r
89 search operators to notmuch, but no patches were sent.\r
90 \r
91 > BTW: Is it possible to specify beginning(^) or the end in subject\r
92 > search pattern?\r
93 \r
94 I don't think so.\r
95 \r
96 -Michal\r
97 \r