Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 5c / c9ed0090c0c14351afa09460e6ceff4ba643f6
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 68D8C431FAF\r
6         for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 11:12:32 -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\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 XJ+8D88v1Zcf for <notmuch@notmuchmail.org>;\r
16         Mon, 20 Oct 2014 11:12:25 -0700 (PDT)\r
17 Received: from cmta14.telus.net (cmta14.telus.net [209.171.16.87])\r
18         by olra.theworths.org (Postfix) with ESMTP id 30FAB431FAE\r
19         for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 11:12:25 -0700 (PDT)\r
20 Received: from ovo.mains.priv ([207.102.88.62]) by cmta14.telus.net with TELUS\r
21         id 5WCQ1p00B1LiWEf01WCQvp; Mon, 20 Oct 2014 12:12:24 -0600\r
22 X-Authority-Analysis: v=2.0 cv=YvLRsfkX c=1 sm=2\r
23         a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=K_0WnIvp2iAA:10 a=IkcTkHD0fZMA:10\r
24         a=20KFwNOVAAAA:8 a=pGLkceISAAAA:8 a=7343-z1_AAAA:8\r
25         a=E2VBG8G2KAZyGhUcUgUA:9\r
26         a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 a=0c-eHkXYtrgA:10\r
27         a=DT_JQ7Kj-ggUwJRE:21\r
28         a=6UbEzHd2lRgpVt0V:21 a=EcQDfIwDZEqJA1f7rVUV8Q==:117\r
29 X-Telus-Outbound-IP: 207.102.88.62\r
30 Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1])\r
31         by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s9KICLS1003401;\r
32         Mon, 20 Oct 2014 11:12:23 -0700\r
33 Received: (from imain@localhost)\r
34         by ovo.mains.priv (8.14.8/8.14.8/Submit) id s9KICKDV003400;\r
35         Mon, 20 Oct 2014 11:12:20 -0700\r
36 X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com\r
37         using -f\r
38 Date: Mon, 20 Oct 2014 11:12:20 -0700\r
39 From: Ian Main <imain@redhat.com>\r
40 To: Franz Fellner <alpine.art.de@gmail.com>\r
41 Message-ID: <5445508493932_ce1af5e886b@ovo.mains.priv.notmuch>\r
42 In-Reply-To: <20141017180750.GE20696@TP_L520.localdomain>\r
43 References: <20141017180750.GE20696@TP_L520.localdomain>\r
44 Subject: RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config\r
45 Mime-Version: 1.0\r
46 Content-Type: text/plain;\r
47  charset=utf-8\r
48 Content-Transfer-Encoding: 7bit\r
49 Cc: notmuch@notmuchmail.org\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Mon, 20 Oct 2014 18:12:32 -0000\r
63 \r
64 \r
65 Thanks Franz!\r
66 \r
67 So this works well in the main searches by not showing anything I have marked\r
68 as 'spam'.  However if I force a search for tag:spam and then try to view any\r
69 of the messages presented they will not show up because of the way we display\r
70 the email..  :-/\r
71 \r
72 I'm not sure what is the best way to fix this..\r
73 \r
74     Ian\r
75 \r
76 Franz Fellner wrote:\r
77 > commit 558719b9ea9c218117c448cf4c7bd671de14d968\r
78 > Author: Franz Fellner <alpine.art.de@gmail.com>\r
79 > Date:   Fri Oct 17 17:53:58 2014 +0200\r
80\r
81 >     Exclude tags specified by\r
82 >     notmuch config get search.exclude_tags\r
83\r
84 > diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
85 > index 5c86fcd..b8d11fe 100644\r
86 > --- a/vim/notmuch.vim\r
87 > +++ b/vim/notmuch.vim\r
88 > @@ -647,6 +647,7 @@ ruby << EOF\r
89 >       $db_name = nil\r
90 >       $all_emails = []\r
91 >       $email = $email_name = $email_address = nil\r
92 > +     $exclude_tags = []\r
93 >       $searches = []\r
94 >       $threads = []\r
95 >       $messages = []\r
96 > @@ -672,6 +673,8 @@ ruby << EOF\r
97 >               # Add the primary to this too as we use it for checking\r
98 >               # addresses when doing a reply\r
99 >               $all_emails.unshift($email_address)\r
100 > +             ignore_tags = get_config_item('search.exclude_tags')\r
101 > +             $exclude_tags = ignore_tags.split("\n")\r
102 >       end\r
103 >  \r
104 >       def vim_puts(s)\r
105 > @@ -924,6 +927,9 @@ ruby << EOF\r
106 >  \r
107 >               def query(*args)\r
108 >                       q = @db.query(*args)\r
109 > +                     $exclude_tags.each { |t|\r
110 > +                             q.add_tag_exclude(t)\r
111 > +                     }\r
112 >                       @queries << q\r
113 >                       q\r
114 >               end\r
115 > _______________________________________________\r
116 > notmuch mailing list\r
117 > notmuch@notmuchmail.org\r
118 > http://notmuchmail.org/mailman/listinfo/notmuch\r
119 \r
120 \r