From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2FTpFLxYLGAWQAAA0tVLHw (envelope-from ) for ; Tue, 16 Feb 2021 23:43:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cHYiELxYLGCFNQAA1q6Kng (envelope-from ) for ; Tue, 16 Feb 2021 23:43:56 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C5B431491E for ; Wed, 17 Feb 2021 00:43:55 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 37DEB1FE25; Tue, 16 Feb 2021 18:43:48 -0500 (EST) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by mail.notmuchmail.org (Postfix) with ESMTPS id CA4061FB0D for ; Tue, 16 Feb 2021 18:43:45 -0500 (EST) Received: by mail-wr1-x431.google.com with SMTP id v14so15390921wro.7 for ; Tue, 16 Feb 2021 15:43:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/KM39PNjJcCBPmIstzBEfZbt6hLecxXFk3/MVO4FBec=; b=ek7P/o8iMlEr/6vozjjELf8M6U1VMh66AgbVwfbeYqeqMWAwVZfY2eHsF29tQ6GVgv wQfmXiG4USdMpf1mls4+BrKCqJigwbOuJ93zr6Q/9MzhbLqSiP/n7RVDmP/I3c2goqgA 8430/RPNe99abb4nKFqGymEnVqta9OgZhcBbZfngzxO1RGxQ0nyQbreQEH/qqwmeHTe2 i84nt0gEjRLK7l/y1EiIQDkcBAeeohDlLkaiX7CkNO0TRl8r8E1uBvVxobL8YYqjIwYd TqWQXnQ+U+I1U5jYsrGH85+DVCoa44boqKlW3Pplxn8OE4aHMguiTsetrqZnCd6UvdOZ khVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/KM39PNjJcCBPmIstzBEfZbt6hLecxXFk3/MVO4FBec=; b=k63h67vMmOTyGTLAXdYdVKp1mzqqppw5WbhB/w2u3DcP1PSkgb52dcO/7Gm6+HdzRE e+isqG3ZDIdU1UA54ZPo93keRZDXJwoNi//YyYoA9vNyVc/Z7cqZ5UM0p6Tv+UqagOXB lF/imwbUNm4g1KYFclWJDMYlc1mnWKrhR8HdFIyvYQlo2t2v2dNJtA/rI5T4SySl2uL/ XhVDPZX+ebODDNqgl3lPP7VngP75CQsjAJe+Qc1flU4H8Z2iXbGNOBprU9hRLRLOGrTi jEyP9375oABve/Fjhu/uC5plfvbtANq8a47z8rVbftSu68o1RDBr1OXoIigoKk9gvde0 xRjQ== X-Gm-Message-State: AOAM5335pVGiRgqpMDKGrvwhnL57YDd7TCM8aECokdxoqbqXUe6t14m5 UJC0OtinSETniWC1aKm8ERIOviQIa5nWZQ== X-Google-Smtp-Source: ABdhPJwhkHL54A2EzQ/4MlJsHnJjhKbe09T9rQlbq6yBNxEsJN7vd6fLYDMoiUodk5eLs0t94RO0yg== X-Received: by 2002:a05:6000:10c5:: with SMTP id b5mr26502970wrx.284.1613519024917; Tue, 16 Feb 2021 15:43:44 -0800 (PST) Received: from localhost (pop.92-184-108-122.mobile.abo.orange.fr. [92.184.108.122]) by smtp.gmail.com with ESMTPSA id k11sm605462wrv.51.2021.02.16.15.43.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 15:43:44 -0800 (PST) From: Jules Aguillon To: notmuch@notmuchmail.org Subject: [PATCH 2/2] Vim: Ensure that every queries respect excluded tags Date: Wed, 17 Feb 2021 00:43:16 +0100 Message-Id: <20210216234316.20990-2-juloo.dsi@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210216234316.20990-1-juloo.dsi@gmail.com> References: <20210216234316.20990-1-juloo.dsi@gmail.com> MIME-Version: 1.0 Message-ID-Hash: S3LBIWU334QCLJH5XWINENTZVV55RCTT X-Message-ID-Hash: S3LBIWU334QCLJH5XWINENTZVV55RCTT X-MailFrom: juloo.dsi@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Jules Aguillon X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.57 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b="ek7P/o8i"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: C5B431491E X-Spam-Score: 0.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: oazyf/g3ovHK This makes sure that the bug solved by the previous commit won't happen again and remove some dupplication. This shouldn't have any side effect. --- vim/notmuch.vim | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/vim/notmuch.vim b/vim/notmuch.vim index 4c7add3b..d5f4f3a7 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -317,9 +317,6 @@ ruby << EOF $curbuf.render do |b| q = $curbuf.query(get_cur_view) q.sort = Notmuch::SORT_OLDEST_FIRST - $exclude_tags.each { |t| - q.add_tag_exclude(t) - } msgs = q.search_messages msgs.each do |msg| m = Mail.read(msg.filename) @@ -643,9 +640,6 @@ ruby << EOF $searches.clear folders.each do |name, search| q = $curbuf.query(search) - $exclude_tags.each { |t| - q.add_tag_exclude(t) - } $searches << search count = count_threads ? q.count_threads : q.count_messages b << "%9d %-20s (%s)" % [count, name, search] @@ -657,9 +651,6 @@ ruby << EOF date_fmt = VIM::evaluate('g:notmuch_date_format') q = $curbuf.query(search) q.sort = Notmuch::SORT_NEWEST_FIRST - $exclude_tags.each { |t| - q.add_tag_exclude(t) - } $threads.clear t = q.search_threads @@ -711,6 +702,9 @@ ruby << EOF def query(*args) q = @db.query(*args) @queries << q + $exclude_tags.each { |t| + q.add_tag_exclude(t) + } q end -- 2.30.0