--- /dev/null
+Return-Path: <imain@redhat.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 5F36C431FAF\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 15:19:39 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id xLFopRdLUPoW for <notmuch@notmuchmail.org>;\r
+ Mon, 20 Oct 2014 15:19:31 -0700 (PDT)\r
+Received: from cmta12.telus.net (cmta12.telus.net [209.171.16.85])\r
+ by olra.theworths.org (Postfix) with ESMTP id DAD4C431FAE\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 15:19:30 -0700 (PDT)\r
+Received: from ovo.mains.priv ([207.102.88.62]) by cmta12.telus.net with TELUS\r
+ id 5aKU1p00P1LiWEf01aKV5x; Mon, 20 Oct 2014 16:19:29 -0600\r
+X-Authority-Analysis: v=2.0 cv=f5eW8pOM c=1 sm=2\r
+ a=EcQDfIwDZEqJA1f7rVUV8Q==:17 a=K_0WnIvp2iAA:10 a=IkcTkHD0fZMA:10\r
+ a=20KFwNOVAAAA:8 a=NEAV23lmAAAA:8 a=pGLkceISAAAA:8 a=7343-z1_AAAA:8\r
+ a=tF0a7Xq1XadDFynQDDYA:9 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10\r
+ a=0c-eHkXYtrgA:10 a=Nl_s-tunX1HkTbTC:21 a=GhVT38N_fK9wFNyF:21\r
+ a=EcQDfIwDZEqJA1f7rVUV8Q==:117\r
+X-Telus-Outbound-IP: 207.102.88.62\r
+Received: from ovo.mains.priv (localhost.localdomain [127.0.0.1])\r
+ by ovo.mains.priv (8.14.8/8.14.8) with ESMTP id s9KMJQdk007991;\r
+ Mon, 20 Oct 2014 15:19:28 -0700\r
+Received: (from imain@localhost)\r
+ by ovo.mains.priv (8.14.8/8.14.8/Submit) id s9KMJPs0007990;\r
+ Mon, 20 Oct 2014 15:19:25 -0700\r
+X-Authentication-Warning: ovo.mains.priv: imain set sender to imain@redhat.com\r
+ using -f\r
+Date: Mon, 20 Oct 2014 15:19:25 -0700\r
+From: Ian Main <imain@redhat.com>\r
+To: Franz Fellner <alpine.art.de@gmail.com>\r
+Message-ID: <54458a6d35fec_1c87f9fe982c@ovo.mains.priv.notmuch>\r
+In-Reply-To: <54456203c37d0_25b371be98d9@TP_L520.notmuch>\r
+References: <20141017180750.GE20696@TP_L520.localdomain>\r
+ <5445508493932_ce1af5e886b@ovo.mains.priv.notmuch>\r
+ <54456203c37d0_25b371be98d9@TP_L520.notmuch>\r
+Subject: RE: [PATCH] VIM: Respect exclude_tags specified in .notmuch-config\r
+Mime-Version: 1.0\r
+Content-Type: text/plain;\r
+ charset=utf-8\r
+Content-Transfer-Encoding: 7bit\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 20 Oct 2014 22:19:39 -0000\r
+\r
+Franz Fellner wrote:\r
+> Ian Main wrote:\r
+> > \r
+> > Thanks Franz!\r
+> > \r
+> > So this works well in the main searches by not showing anything I have marked\r
+> > as 'spam'. However if I force a search for tag:spam and then try to view any\r
+> > of the messages presented they will not show up because of the way we display\r
+> > the email.. :-/\r
+> \r
+> Yes, the patch did not work perfectly.\r
+> I already fixed that but forgot to send a new PATCH here - Mostly\r
+> bacause my git-skills are - ehh - no idea...\r
+> I now spent half an hour to somehow get a merged version of those two commits\r
+> and ended up with a simple "git diff"...\r
+> If you have a good how-to that describes such things I would be happy, because I also\r
+> miss the common terms how things are called in git and searching without knowing\r
+> what exactly I am looking for is hard...\r
+> \r
+> Here is the commit:\r
+> https://github.com/ff2000/notmuch/commit/4fde250b53ce450fec3393d8578458d521a69c91\r
+> New patch coming soon.\r
+> \r
+> Franz\r
+\r
+If you are working off the same patch that you already posted you would generally\r
+do work on that branch and then you can do:\r
+\r
+git add ...\r
+git commit --amend\r
+\r
+which commits the new stuff on top of the same commit you already had.\r
+\r
+To send to the mailing list, I use:\r
+\r
+git format-patch -1\r
+(check the patch output..)\r
+git send-email <filename>\r
+\r
+which requires that you have your .gitconfig set up to have the list address\r
+and such.\r
+\r
+Also you can look into 'git cherry-pick' to grab commits from other branches\r
+and 'git rebase -i' which allows you to squash commits together. eg:\r
+\r
+git rebase -i HEAD~2\r
+\r
+lets you squash the last two patches together by adding 'squash' to the\r
+front of the latest commit.\r
+\r
+Hopefully that helps and I didn't misinterpret what you needed.\r
+\r
+ Ian\r
+\r
+\r
+\r
+> > \r
+> > I'm not sure what is the best way to fix this..\r
+> > \r
+> > Ian\r
+> > \r
+> > Franz Fellner wrote:\r
+> > > commit 558719b9ea9c218117c448cf4c7bd671de14d968\r
+> > > Author: Franz Fellner <alpine.art.de@gmail.com>\r
+> > > Date: Fri Oct 17 17:53:58 2014 +0200\r
+> > > \r
+> > > Exclude tags specified by\r
+> > > notmuch config get search.exclude_tags\r
+> > > \r
+> > > diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
+> > > index 5c86fcd..b8d11fe 100644\r
+> > > --- a/vim/notmuch.vim\r
+> > > +++ b/vim/notmuch.vim\r
+> > > @@ -647,6 +647,7 @@ ruby << EOF\r
+> > > $db_name = nil\r
+> > > $all_emails = []\r
+> > > $email = $email_name = $email_address = nil\r
+> > > + $exclude_tags = []\r
+> > > $searches = []\r
+> > > $threads = []\r
+> > > $messages = []\r
+> > > @@ -672,6 +673,8 @@ ruby << EOF\r
+> > > # Add the primary to this too as we use it for checking\r
+> > > # addresses when doing a reply\r
+> > > $all_emails.unshift($email_address)\r
+> > > + ignore_tags = get_config_item('search.exclude_tags')\r
+> > > + $exclude_tags = ignore_tags.split("\n")\r
+> > > end\r
+> > > \r
+> > > def vim_puts(s)\r
+> > > @@ -924,6 +927,9 @@ ruby << EOF\r
+> > > \r
+> > > def query(*args)\r
+> > > q = @db.query(*args)\r
+> > > + $exclude_tags.each { |t|\r
+> > > + q.add_tag_exclude(t)\r
+> > > + }\r
+> > > @queries << q\r
+> > > q\r
+> > > end\r
+> > > _______________________________________________\r
+> > > notmuch mailing list\r
+> > > notmuch@notmuchmail.org\r
+> > > http://notmuchmail.org/mailman/listinfo/notmuch\r
+> > \r
+> > \r
+> \r
+> \r
+\r
+\r