1 Return-Path: <imain@redhat.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 5F36C431FAF
\r
6 for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 15:19:39 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 xLFopRdLUPoW for <notmuch@notmuchmail.org>;
\r
16 Mon, 20 Oct 2014 15:19:31 -0700 (PDT)
\r
17 Received: from cmta12.telus.net (cmta12.telus.net [209.171.16.85])
\r
18 by olra.theworths.org (Postfix) with ESMTP id DAD4C431FAE
\r
19 for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 15:19:30 -0700 (PDT)
\r
20 Received: from ovo.mains.priv ([207.102.88.62]) by cmta12.telus.net with TELUS
\r
21 id 5aKU1p00P1LiWEf01aKV5x; Mon, 20 Oct 2014 16:19:29 -0600
\r
22 X-Authority-Analysis: v=2.0 cv=f5eW8pOM c=1 sm=2
\r
23 a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=K_0WnIvp2iAA:10 a=IkcTkHD0fZMA:10
\r
24 a=20KFwNOVAAAA:8 a=NEAV23lmAAAA:8 a=pGLkceISAAAA:8 a=7343-z1_AAAA:8
\r
25 a=tF0a7Xq1XadDFynQDDYA:9 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10
\r
26 a=0c-eHkXYtrgA:10 a=Nl_s-tunX1HkTbTC:21 a=GhVT38N_fK9wFNyF:21
\r
27 a=EcQDfIwDZEqJA1f7rVUV8Q==:117
\r
28 X-Telus-Outbound-IP: 207.102.88.62
\r
29 Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1])
\r
30 by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s9KMJQdk007991;
\r
31 Mon, 20 Oct 2014 15:19:28 -0700
\r
32 Received: (from imain@localhost)
\r
33 by ovo.mains.priv (8.14.8/8.14.8/Submit) id s9KMJPs0007990;
\r
34 Mon, 20 Oct 2014 15:19:25 -0700
\r
35 X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com
\r
37 Date: Mon, 20 Oct 2014 15:19:25 -0700
\r
38 From: Ian Main <imain@redhat.com>
\r
39 To: Franz Fellner <alpine.art.de@gmail.com>
\r
40 Message-ID: <54458a6d35fec_1c87f9fe982c@ovo.mains.priv.notmuch>
\r
41 In-Reply-To: <54456203c37d0_25b371be98d9@TP_L520.notmuch>
\r
42 References: <20141017180750.GE20696@TP_L520.localdomain>
\r
43 <5445508493932_ce1af5e886b@ovo.mains.priv.notmuch>
\r
44 <54456203c37d0_25b371be98d9@TP_L520.notmuch>
\r
45 Subject: RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config
\r
47 Content-Type: text/plain;
\r
49 Content-Transfer-Encoding: 7bit
\r
50 Cc: notmuch@notmuchmail.org
\r
51 X-BeenThere: notmuch@notmuchmail.org
\r
52 X-Mailman-Version: 2.1.13
\r
54 List-Id: "Use and development of the notmuch mail system."
\r
55 <notmuch.notmuchmail.org>
\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
57 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
59 List-Post: <mailto:notmuch@notmuchmail.org>
\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
63 X-List-Received-Date: Mon, 20 Oct 2014 22:19:39 -0000
\r
65 Franz Fellner wrote:
\r
70 > > So this works well in the main searches by not showing anything I have marked
\r
71 > > as 'spam'. However if I force a search for tag:spam and then try to view any
\r
72 > > of the messages presented they will not show up because of the way we display
\r
75 > Yes, the patch did not work perfectly.
\r
76 > I already fixed that but forgot to send a new PATCH here - Mostly
\r
77 > bacause my git-skills are - ehh - no idea...
\r
78 > I now spent half an hour to somehow get a merged version of those two commits
\r
79 > and ended up with a simple "git diff"...
\r
80 > If you have a good how-to that describes such things I would be happy, because I also
\r
81 > miss the common terms how things are called in git and searching without knowing
\r
82 > what exactly I am looking for is hard...
\r
84 > Here is the commit:
\r
85 > https://github.com/ff2000/notmuch/commit/4fde250b53ce450fec3393d8578458d521a69c91
\r
86 > New patch coming soon.
\r
90 If you are working off the same patch that you already posted you would generally
\r
91 do work on that branch and then you can do:
\r
96 which commits the new stuff on top of the same commit you already had.
\r
98 To send to the mailing list, I use:
\r
100 git format-patch -1
\r
101 (check the patch output..)
\r
102 git send-email <filename>
\r
104 which requires that you have your .gitconfig set up to have the list address
\r
107 Also you can look into 'git cherry-pick' to grab commits from other branches
\r
108 and 'git rebase -i' which allows you to squash commits together. eg:
\r
110 git rebase -i HEAD~2
\r
112 lets you squash the last two patches together by adding 'squash' to the
\r
113 front of the latest commit.
\r
115 Hopefully that helps and I didn't misinterpret what you needed.
\r
122 > > I'm not sure what is the best way to fix this..
\r
126 > > Franz Fellner wrote:
\r
127 > > > commit 558719b9ea9c218117c448cf4c7bd671de14d968
\r
128 > > > Author: Franz Fellner <alpine.art.de@gmail.com>
\r
129 > > > Date: Fri Oct 17 17:53:58 2014 +0200
\r
131 > > > Exclude tags specified by
\r
132 > > > notmuch config get search.exclude_tags
\r
134 > > > diff --git a/vim/notmuch.vim b/vim/notmuch.vim
\r
135 > > > index 5c86fcd..b8d11fe 100644
\r
136 > > > --- a/vim/notmuch.vim
\r
137 > > > +++ b/vim/notmuch.vim
\r
138 > > > @@ -647,6 +647,7 @@ ruby << EOF
\r
139 > > > $db_name = nil
\r
140 > > > $all_emails = []
\r
141 > > > $email = $email_name = $email_address = nil
\r
142 > > > + $exclude_tags = []
\r
143 > > > $searches = []
\r
144 > > > $threads = []
\r
145 > > > $messages = []
\r
146 > > > @@ -672,6 +673,8 @@ ruby << EOF
\r
147 > > > # Add the primary to this too as we use it for checking
\r
148 > > > # addresses when doing a reply
\r
149 > > > $all_emails.unshift($email_address)
\r
150 > > > + ignore_tags = get_config_item('search.exclude_tags')
\r
151 > > > + $exclude_tags = ignore_tags.split("\n")
\r
154 > > > def vim_puts(s)
\r
155 > > > @@ -924,6 +927,9 @@ ruby << EOF
\r
157 > > > def query(*args)
\r
158 > > > q = @db.query(*args)
\r
159 > > > + $exclude_tags.each { |t|
\r
160 > > > + q.add_tag_exclude(t)
\r
162 > > > @queries << q
\r
165 > > > _______________________________________________
\r
166 > > > notmuch mailing list
\r
167 > > > notmuch@notmuchmail.org
\r
168 > > > http://notmuchmail.org/mailman/listinfo/notmuch
\r