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 aDsCLcFYLGAWQAAA0tVLHw (envelope-from ) for ; Tue, 16 Feb 2021 23:44:01 +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 iLXpKMFYLGCyNAAA1q6Kng (envelope-from ) for ; Tue, 16 Feb 2021 23:44:01 +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)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1952714925 for ; Wed, 17 Feb 2021 00:44:01 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1E32226A20; Tue, 16 Feb 2021 18:43:52 -0500 (EST) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by mail.notmuchmail.org (Postfix) with ESMTPS id 02CDB26A11 for ; Tue, 16 Feb 2021 18:43:49 -0500 (EST) Received: by mail-wr1-x42a.google.com with SMTP id n4so12411839wrx.1 for ; Tue, 16 Feb 2021 15:43:48 -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:mime-version :content-transfer-encoding; bh=aTZify5ObwRF6GDZR/2jCasJFD86S8/jFpDl4FVT3dQ=; b=dO6QeMoMod3i8ZfsAkE0b5GhQsldzWSIyEJpVSzVOPfciy7Q71yXok67dl1uiGPnah 9F8qcqvNxb3ASdOS0L8oKar+FnNnxlE/h+HzoHlDLsIBCc/+zryypa/BSlhKmmgLlwTy r1ul76pbJpAaRVkE6NdjoHm4GQny9E2mCwWN5pQh0D4msRZspg5/51rPs9m7RsH39OWC PZq1EF5wXkh3blJcun0Y+iWptqld+wolacUJFjG2P0/eR1Roa18TFWZgUE8Df8YC24Q9 Qp+uLbtT/rbG1GAIJVfaqP8GxZNnXB4pZact1YkCWHKIEUUNlD7NT74gQo9O1h2okViy h9xQ== 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:mime-version :content-transfer-encoding; bh=aTZify5ObwRF6GDZR/2jCasJFD86S8/jFpDl4FVT3dQ=; b=t+/PJYALAv/Pnrfh8wT4tcAMyc0Ub2/2F/gd/TIxoPqco2zeG2QNkRZO3yydaV8omc mIzaMExiCA+8Tt8HEy+Ed5O8eyFJ0V1ewObMVRXJwIWG3+QdCyhFczeZvnLtqNhNl6LX Nvab/59cVkcJ/MRIP4Qxb99L/4Z/C00owm6l7mwNAUV5P1I4s5uk6tt/UXS2/JK1SB5l QSgNNd4bgRugWdEFPvYLmI836xDnrhTiTN5ZVR4hq2d5j0c/kondwFP0jhNursjdSHZU GWxZ6872pjgoHGuRLYaxaZ5AmLyjdvzRd+tZK8rOBYg3VJIx/NMdNpYVEd7VuAcaA32B APNA== X-Gm-Message-State: AOAM531MEcIJaL77fe1XZb2X5AkGUXnFGQ69HDIcwZWtLMPmwtilE/rt mVS8FT2sMUIZQzqhOUobQ2HdJ4YI1ZOoHg== X-Google-Smtp-Source: ABdhPJwQ6Rgxn3uyt0lWzQInwWEpYPPfOB9jQpzZB6S8Y8/IVsQqfBTPfPX09Vk6baNyz83nNyMq8w== X-Received: by 2002:a5d:4e0f:: with SMTP id p15mr26210255wrt.312.1613519020690; Tue, 16 Feb 2021 15:43:40 -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 e16sm852854wrt.36.2021.02.16.15.43.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Feb 2021 15:43:40 -0800 (PST) From: Jules Aguillon To: notmuch@notmuchmail.org Subject: [PATCH 1/2] Vim: Respect excluded tags when showing a thread Date: Wed, 17 Feb 2021 00:43:15 +0100 Message-Id: <20210216234316.20990-1-juloo.dsi@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Message-ID-Hash: ZU7NHLRR5QAWVHO4HA4CQHW2TRIWY6DA X-Message-ID-Hash: ZU7NHLRR5QAWVHO4HA4CQHW2TRIWY6DA 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=dO6QeMoM; 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: 1952714925 X-Spam-Score: 0.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: fKAe8Ui6WcFt Other queries have exclude_tags taken into account but this one. This is annoying when using an excluded tag to ignore past messages from a thread (for example the 'deleted' tag), the entire thread is shown all the time. --- NEWS | 5 +++++ vim/notmuch.vim | 3 +++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index 6484567e..325acf22 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,11 @@ Library Fix for memory error in notmuch_database_get_config_list +Vim +--- + +Respect excluded tags when showing a thread. + Notmuch 0.31.2 (2020-11-08) =========================== diff --git a/vim/notmuch.vim b/vim/notmuch.vim index ad8b7c80..4c7add3b 100644 --- a/vim/notmuch.vim +++ b/vim/notmuch.vim @@ -317,6 +317,9 @@ 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) -- 2.30.0