--- /dev/null
+Return-Path: <alpine.art.de@gmail.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 185E5431FAF\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 12:26:55 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 8cQf-zicmw63 for <notmuch@notmuchmail.org>;\r
+ Mon, 20 Oct 2014 12:26:51 -0700 (PDT)\r
+Received: from mail-la0-f49.google.com (mail-la0-f49.google.com\r
+ [209.85.215.49]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id C31A4431FAE\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 12:26:50 -0700 (PDT)\r
+Received: by mail-la0-f49.google.com with SMTP id q1so4503269lam.22\r
+ for <notmuch@notmuchmail.org>; Mon, 20 Oct 2014 12:26:48 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=date:from:to:cc:message-id:in-reply-to:references:subject\r
+ :mime-version:content-type:content-transfer-encoding;\r
+ bh=H6W6eYBCgVD5jyVahsF4hirsW4/gFhW8F1AIvFXDemA=;\r
+ b=cDy7WSRZjkR7CVbWN0zH96TTCbbiOUX232mHh4EbyyXm6QZRTtj8hm6YJ9jtexfZjx\r
+ 54QQ15zFACWvYb3NO7SBZK+nXkXnp3rIx4D2JrkFBKyeOqfeWWA9n2IShVw7K3cCEjV/\r
+ UU0Q3uQt5Xk0HM64+qqn/XuEa7f9sgzkD1AFaKibcfeJUUfGbR9pQqblWwgSGC2aK4Nt\r
+ iU4wYVA90O2xbU5PsRkefeih3xWM41ecyRFlm7I8V1BroELjlFtpXHPuXSeW/e7+ezRB\r
+ wM+Tqm5b2axzmR3sHs+J7mPEeok14z7tKNmxL7QOysVEIYBXtUq0aOvWB4Zhk9NnoqQb\r
+ +ATQ==\r
+X-Received: by 10.112.173.100 with SMTP id bj4mr11664673lbc.78.1413833208874; \r
+ Mon, 20 Oct 2014 12:26:48 -0700 (PDT)\r
+Received: from localhost (p5B00FFDE.dip0.t-ipconnect.de. [91.0.255.222])\r
+ by mx.google.com with ESMTPSA id w8sm3592363lbp.46.2014.10.20.12.26.47\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Mon, 20 Oct 2014 12:26:47 -0700 (PDT)\r
+Date: Mon, 20 Oct 2014 21:26:59 +0200\r
+From: Franz Fellner <alpine.art.de@gmail.com>\r
+To: Ian Main <imain@redhat.com>, \r
+ Ian Main <imain@redhat.com>\r
+Message-ID: <54456203c37d0_25b371be98d9@TP_L520.notmuch>\r
+In-Reply-To: <5445508493932_ce1af5e886b@ovo.mains.priv.notmuch>\r
+References: <20141017180750.GE20696@TP_L520.localdomain>\r
+ <5445508493932_ce1af5e886b@ovo.mains.priv.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 19:26:55 -0000\r
+\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
+> \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