Re: [PATCH 9/9] add has: query prefix to search for specific properties
[notmuch-archives.git] / a4 / d2258c14738183314299e7e5d071cd4ccfcde1
1 Return-Path: <tomi.ollila@iki.fi>\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 9ECE0431FAF\r
6         for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 01:59:07 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 W-4reMGY6afx for <notmuch@notmuchmail.org>;\r
16         Sat, 24 Mar 2012 01:59:03 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
18         by olra.theworths.org (Postfix) with ESMTP id 9ED6E431FAE\r
19         for <notmuch@notmuchmail.org>; Sat, 24 Mar 2012 01:59:03 -0700 (PDT)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id DB56768055; Sat, 24 Mar 2012 10:58:59 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: Jakob <jakob@pipefour.org>, notmuch@notmuchmail.org\r
24 Subject: Re: [PATCH] vim: fix regex after "notmuch show" output change\r
25 In-Reply-To: <1332390675-31273-1-git-send-email-jakob@pipefour.org>\r
26 References: <1332390675-31273-1-git-send-email-jakob@pipefour.org>User-Agent:\r
27  Notmuch/0.12+70~g598bf0a       (http://notmuchmail.org) Emacs/23.3.1\r
28  (x86_64-unknown-linux-gnu)\r
29 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
30         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
31         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
32 Date: Sat, 24 Mar 2012 10:58:59 +0200\r
33 Message-ID: <m2mx76idd8.fsf@guru.guru-group.fi>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Sat, 24 Mar 2012 08:59:07 -0000\r
49 \r
50 Jakob <jakob@pipefour.org> writes:\r
51 \r
52 > The new field "excluded" was added to the output and made this regex fail.\r
53 > ---\r
54 \r
55 Is this regexp part below good ?\r
56 \r
57 > +        ... match:\([0-9]*\) excluded:\([[0-9]*\) filename:\(.*\)$', ...\r
58 \r
59 ( --> excluded:\([[0-9]*\) <-- )\r
60 \r
61 Otherwise lookg good (I think).\r
62 \r
63 Tomi\r
64 \r
65 >  vim/plugin/notmuch.vim |    5 +++--\r
66 >  1 files changed, 3 insertions(+), 2 deletions(-)\r
67 >\r
68 > diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
69 > index 21985c7..92e1b50 100644\r
70 > --- a/vim/plugin/notmuch.vim\r
71 > +++ b/vim/plugin/notmuch.vim\r
72 > @@ -48,7 +48,7 @@ let s:notmuch_defaults = {\r
73 >          \ 'g:notmuch_show_part_end_regexp':          '\f\r
74 part}'                   ,\r
75 >          \ 'g:notmuch_show_marker_regexp':            '\f\r
76 \\(message\\|header\\|body\\|attachment\\|part\\)[{}].*$',\r
77 >          \\r
78 > -        \ 'g:notmuch_show_message_parse_regexp':     '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) filename:\(.*\)$',\r
79 > +        \ 'g:notmuch_show_message_parse_regexp':     '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) excluded:\([[0-9]*\) filename:\(.*\)$',\r
80 >          \ 'g:notmuch_show_tags_regexp':              '(\([^)]*\))$'               ,\r
81 >          \\r
82 >          \ 'g:notmuch_show_signature_regexp':         '^\(-- \?\|_\+\)$'           ,\r
83 > @@ -870,7 +870,8 @@ function! s:NM_cmd_show_parse(inlines)\r
84 >                                          let msg['id'] = m[1]\r
85 >                                          let msg['depth'] = m[2]\r
86 >                                          let msg['match'] = m[3]\r
87 > -                                        let msg['filename'] = m[4]\r
88 > +                                        let msg['excluded'] = m[4]\r
89 > +                                        let msg['filename'] = m[5]\r
90 >                                  endif\r
91 >  \r
92 >                                  let in_message = 1\r
93 > -- \r
94 > 1.7.9.1\r
95 >\r
96 > _______________________________________________\r
97 > notmuch mailing list\r
98 > notmuch@notmuchmail.org\r
99 > http://notmuchmail.org/mailman/listinfo/notmuch\r