Re: [PATCH] create .mailmap file (for git shortlog/blame)
[notmuch-archives.git] / 56 / d4aeb3cbf8fa36b4d92ccbf666cab6945a691a
1 Return-Path: <alpine.art.de@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 185E5431FAF\r
6         for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 12:26:55 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, 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 8cQf-zicmw63 for <notmuch@notmuchmail.org>;\r
17         Mon, 20 Oct 2014 12:26:51 -0700 (PDT)\r
18 Received: from mail-la0-f49.google.com (mail-la0-f49.google.com\r
19         [209.85.215.49]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id C31A4431FAE\r
22         for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 12:26:50 -0700 (PDT)\r
23 Received: by mail-la0-f49.google.com with SMTP id q1so4503269lam.22\r
24         for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 12:26:48 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=date:from:to:cc:message-id:in-reply-to:references:subject\r
27         :mime-version:content-type:content-transfer-encoding;\r
28         bh=H6W6eYBCgVD5jyVahsF4hirsW4/gFhW8F1AIvFXDemA=;\r
29         b=cDy7WSRZjkR7CVbWN0zH96TTCbbiOUX232mHh4EbyyXm6QZRTtj8hm6YJ9jtexfZjx\r
30         54QQ15zFACWvYb3NO7SBZK+nXkXnp3rIx4D2JrkFBKyeOqfeWWA9n2IShVw7K3cCEjV/\r
31         UU0Q3uQt5Xk0HM64+qqn/XuEa7f9sgzkD1AFaKibcfeJUUfGbR9pQqblWwgSGC2aK4Nt\r
32         iU4wYVA90O2xbU5PsRkefeih3xWM41ecyRFlm7I8V1BroELjlFtpXHPuXSeW/e7+ezRB\r
33         wM+Tqm5b2axzmR3sHs+J7mPEeok14z7tKNmxL7QOysVEIYBXtUq0aOvWB4Zhk9NnoqQb\r
34         +ATQ==\r
35 X-Received: by 10.112.173.100 with SMTP id bj4mr11664673lbc.78.1413833208874; \r
36         Mon, 20 Oct 2014 12:26:48 -0700 (PDT)\r
37 Received: from localhost (p5B00FFDE.dip0.t-ipconnect.de. [91.0.255.222])\r
38         by mx.google.com with ESMTPSA id w8sm3592363lbp.46.2014.10.20.12.26.47\r
39         for <multiple recipients>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Mon, 20 Oct 2014 12:26:47 -0700 (PDT)\r
42 Date: Mon, 20 Oct 2014 21:26:59 +0200\r
43 From: Franz Fellner <alpine.art.de@gmail.com>\r
44 To: Ian Main <imain@redhat.com>, \r
45  Ian Main <imain@redhat.com>\r
46 Message-ID: <54456203c37d0_25b371be98d9@TP_L520.notmuch>\r
47 In-Reply-To: <5445508493932_ce1af5e886b@ovo.mains.priv.notmuch>\r
48 References: <20141017180750.GE20696@TP_L520.localdomain>\r
49         <5445508493932_ce1af5e886b@ovo.mains.priv.notmuch>\r
50 Subject: RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config\r
51 Mime-Version: 1.0\r
52 Content-Type: text/plain;\r
53  charset=utf-8\r
54 Content-Transfer-Encoding: 7bit\r
55 Cc: notmuch@notmuchmail.org\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Mon, 20 Oct 2014 19:26:55 -0000\r
69 \r
70 Ian Main wrote:\r
71\r
72 > Thanks Franz!\r
73\r
74 > So this works well in the main searches by not showing anything I have marked\r
75 > as 'spam'.  However if I force a search for tag:spam and then try to view any\r
76 > of the messages presented they will not show up because of the way we display\r
77 > the email..  :-/\r
78 \r
79 Yes, the patch did not work perfectly.\r
80 I already fixed that but forgot to send a new PATCH here - Mostly\r
81 bacause my git-skills are - ehh - no idea...\r
82 I now spent half an hour to somehow get a merged version of those two commits\r
83 and ended up with a simple "git diff"...\r
84 If you have a good how-to that describes such things I would be happy, because I also\r
85 miss the common terms how things are called in git and searching without knowing\r
86 what exactly I am looking for is hard...\r
87 \r
88 Here is the commit:\r
89 https://github.com/ff2000/notmuch/commit/4fde250b53ce450fec3393d8578458d521a69c91\r
90 New patch coming soon.\r
91 \r
92 Franz\r
93 \r
94\r
95 > I'm not sure what is the best way to fix this..\r
96\r
97 >     Ian\r
98\r
99 > Franz Fellner wrote:\r
100 > > commit 558719b9ea9c218117c448cf4c7bd671de14d968\r
101 > > Author: Franz Fellner <alpine.art.de@gmail.com>\r
102 > > Date:   Fri Oct 17 17:53:58 2014 +0200\r
103 > > \r
104 > >     Exclude tags specified by\r
105 > >     notmuch config get search.exclude_tags\r
106 > > \r
107 > > diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
108 > > index 5c86fcd..b8d11fe 100644\r
109 > > --- a/vim/notmuch.vim\r
110 > > +++ b/vim/notmuch.vim\r
111 > > @@ -647,6 +647,7 @@ ruby << EOF\r
112 > >     $db_name = nil\r
113 > >     $all_emails = []\r
114 > >     $email = $email_name = $email_address = nil\r
115 > > +   $exclude_tags = []\r
116 > >     $searches = []\r
117 > >     $threads = []\r
118 > >     $messages = []\r
119 > > @@ -672,6 +673,8 @@ ruby << EOF\r
120 > >             # Add the primary to this too as we use it for checking\r
121 > >             # addresses when doing a reply\r
122 > >             $all_emails.unshift($email_address)\r
123 > > +           ignore_tags = get_config_item('search.exclude_tags')\r
124 > > +           $exclude_tags = ignore_tags.split("\n")\r
125 > >     end\r
126 > >  \r
127 > >     def vim_puts(s)\r
128 > > @@ -924,6 +927,9 @@ ruby << EOF\r
129 > >  \r
130 > >             def query(*args)\r
131 > >                     q = @db.query(*args)\r
132 > > +                   $exclude_tags.each { |t|\r
133 > > +                           q.add_tag_exclude(t)\r
134 > > +                   }\r
135 > >                     @queries << q\r
136 > >                     q\r
137 > >             end\r
138 > > _______________________________________________\r
139 > > notmuch mailing list\r
140 > > notmuch@notmuchmail.org\r
141 > > http://notmuchmail.org/mailman/listinfo/notmuch\r
142\r
143\r
144 \r
145 \r