[PATCH v2 (rebased) 0/3] Improve the display of matching/non-matching authors.
[notmuch-archives.git] / 98 / 2552d30c0eebac46ca40d98f05875a3e7ef03c
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 191E0431FB6\r
6         for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 09:07:48 -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 luSKUy0h497f for <notmuch@notmuchmail.org>;\r
17         Fri, 17 Oct 2014 09:07:42 -0700 (PDT)\r
18 Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com\r
19  [74.125.82.48])        (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  6BD9C431FAF    for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 09:07:42 -0700\r
22  (PDT)\r
23 Received: by mail-wg0-f48.google.com with SMTP id k14so1250043wgh.19\r
24         for <notmuch@notmuchmail.org>; Fri, 17 Oct 2014 09:07:41 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=date:message-id:from:to:subject:mime-version:content-type\r
27         :content-disposition:content-transfer-encoding;\r
28         bh=P8jga0bxOOQnR37AuSrQiq0/Uex/e31M3/zfHi7+Jf0=;\r
29         b=zML7GcIJw+gCTIrP1tBsOoZlibdSiqtGGEHH1grSs5MhgKbcE6E4vSmOg9/D+RTLtd\r
30         0cEv9rxgKZKbrIC0ZWZ4CqPtDEPPBZLhks0/OAWWdVz9el+2KWdEpqHemZ3hL6V+HTns\r
31         my5LmDXaCSJYDQDzzhmH8KmkB3+LW81+dFoSxjoaWWhKWqe0kLfJ5XrHkEE7hzd4D8QD\r
32         3qWhX78d9acZM1ZraGR9O6+jV6X88x+YkdvjItlFGW2iigXjd+iZggXIqKY/rkpM4Edh\r
33         wNyScOSAzf3ziF7yTBqoQmO9gO0Tzf9idzKqXHa0K2IanBNWlxP3f4wdiTviMzYeTRyV\r
34         WGkA==\r
35 X-Received: by 10.180.73.244 with SMTP id o20mr15473079wiv.9.1413562060884;\r
36         Fri, 17 Oct 2014 09:07:40 -0700 (PDT)\r
37 Received: from localhost (p5B00C8AC.dip0.t-ipconnect.de. [91.0.200.172])\r
38         by mx.google.com with ESMTPSA id ga7sm2569484wic.5.2014.10.17.09.07.39\r
39         for <notmuch@notmuchmail.org>\r
40         (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
41         Fri, 17 Oct 2014 09:07:39 -0700 (PDT)\r
42 Date: Fri, 17 Oct 2014 18:07:50 +0200\r
43 Message-ID: <20141017180750.GE20696@TP_L520.localdomain>\r
44 From: Franz Fellner <alpine.art.de@gmail.com>\r
45 To: notmuch@notmuchmail.org\r
46 Subject: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain; charset=utf-8\r
49 Content-Disposition: inline\r
50 Content-Transfer-Encoding: 8bit\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\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: Fri, 17 Oct 2014 16:07:48 -0000\r
64 \r
65 commit 558719b9ea9c218117c448cf4c7bd671de14d968\r
66 Author: Franz Fellner <alpine.art.de@gmail.com>\r
67 Date:   Fri Oct 17 17:53:58 2014 +0200\r
68 \r
69     Exclude tags specified by\r
70     notmuch config get search.exclude_tags\r
71 \r
72 diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
73 index 5c86fcd..b8d11fe 100644\r
74 --- a/vim/notmuch.vim\r
75 +++ b/vim/notmuch.vim\r
76 @@ -647,6 +647,7 @@ ruby << EOF\r
77         $db_name = nil\r
78         $all_emails = []\r
79         $email = $email_name = $email_address = nil\r
80 +       $exclude_tags = []\r
81         $searches = []\r
82         $threads = []\r
83         $messages = []\r
84 @@ -672,6 +673,8 @@ ruby << EOF\r
85                 # Add the primary to this too as we use it for checking\r
86                 # addresses when doing a reply\r
87                 $all_emails.unshift($email_address)\r
88 +               ignore_tags = get_config_item('search.exclude_tags')\r
89 +               $exclude_tags = ignore_tags.split("\n")\r
90         end\r
91  \r
92         def vim_puts(s)\r
93 @@ -924,6 +927,9 @@ ruby << EOF\r
94  \r
95                 def query(*args)\r
96                         q = @db.query(*args)\r
97 +                       $exclude_tags.each { |t|\r
98 +                               q.add_tag_exclude(t)\r
99 +                       }\r
100                         @queries << q\r
101                         q\r
102                 end\r