From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kJRMNIn38WK/wQAAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 07:58:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gKQuNIn38WKGNAEAauVa8A (envelope-from ) for ; Tue, 09 Aug 2022 07:58:33 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 3D83A3E408 for ; Tue, 9 Aug 2022 07:58:33 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7EC895F37D; Tue, 9 Aug 2022 05:58:30 +0000 (UTC) Received: from mariecurie.labrat.space (mariecurie.labrat.space [116.203.185.229]) by mail.notmuchmail.org (Postfix) with ESMTPS id DD8845F375 for ; Tue, 9 Aug 2022 05:58:27 +0000 (UTC) Received: from labrat.space (adsl-178-38-36-59.adslplus.ch [178.38.36.59]) by mariecurie.labrat.space (Postfix) with ESMTPSA id 1B8373D2D313; Tue, 9 Aug 2022 07:58:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=labrat.space; s=201904; t=1660024707; bh=3lwommB2jm4uNY7RzKDDxs+uzJmo7uxk35xuDGvotew=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To:From:To:CC:Date: Subject:Content-Type:Content-Disposition:Reply-To:In-Reply-To: MIME-Version:Message-ID:References; b=dTSzturiLBsL5g6xuNDnsG229iA+2cT9AIWrp/gV2+lLp4GWCZvn1uT0EISfPhS0/ 4Mbgjd7UCU7J+oCrE/MmTXEyLYQJ32csL4c4YRY8uQ8mTptDFx5dPpCO2oMrahLdIz MJMWrjhmY+zZNGJA2GpChZ6WP3yHmwI5vRuLh4GYMXoSsXVm0lkavX/Ot2nSFxMWd0 lY/7cYiC0Sz7gmAjYPVUQ2iHgFokq26SFL40j+jaSShXY/pPAgJsBpJVKEfsA0BfDH E9+erVD3qyNbZRW6YjZg+6sWPVxvfgQ0y2XAX+qEDkczNpghdJd7dyZdD1EonA+79H RyMzuaLXFgs6w== Date: Tue, 9 Aug 2022 07:58:25 +0200 From: Reto To: David Bremner Subject: Re: Create tags from folders Message-ID: <20220809055825.6cochyapl2o6xrrg@feather> Mail-Followup-To: David Bremner , notmuch@notmuchmail.org References: <165989993313.7.8480352458042595298.55989238@8shield.net> <20220808221038.oebuhqqvgxgkqpa5@feather> <8735e6jiuf.fsf@tethera.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8735e6jiuf.fsf@tethera.net> Message-ID-Hash: 3QJG24QIFOI4MNDF5BQDHAJSOFCOXTIV X-Message-ID-Hash: 3QJG24QIFOI4MNDF5BQDHAJSOFCOXTIV X-MailFrom: reto@labrat.space 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; digests; suspicious-header CC: notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660024713; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=TBeqHBVeJ/TuSGUCqIVngl+OpvomhLqNSjFzpGy50pk=; b=FoLlnxAc9VFXqF3MAa8cxobssbMPegBwnKDI/jgcCfJIVo3YbN4HaetTtTMVUzkYqLshpU BP2zIKEPcgYsw8bfk9pFYShFoVUXFnHOaMPnbg2V3RI2bxGMA7elj9SbtXOHsuBf+P7wSh AtBnt51xcVmeg8V52eld5djeetwZUnzOYan99gi9y4QSTn+2nAU2/Ym28PaFH9N2xU3UYw NnYoGZA0/lL4sWMnfq0SyXk16Xqo7rxOUmHLoOHcqlUrZhjdaD1NB7pDO+GL9uddiKscWV rq4ids6seXFohzQQPALUlI8SroCvBzzUfc+TykQ5SHmpo4GRgG4TFgJvs8kubA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660024713; a=rsa-sha256; cv=none; b=FY1spFjLbmhvjc7AcAaP6PxGMtxBMYSrq7qG6jzqsTivVrvi5J4vwXs0EzPj4DtmX3UOsN wNYFsge39ARx4u0YewIeptFa+7l0MpHDQCLVbM/AAJO9huiRjLOg1TDweow/kmjQNV6raC HvhO7ihI9cCC3eHBL0c4HNLc8KQiBlCpic7v3PTN7gu+LeGrL0kG3y4hoob0GiK8quOMnq MWxxkUlTOZj4FMmqD0GQP+qHrEtysClp6X0AlFIzGQaTOuU+IxUTYp5QUE9OlnfKwQroES D2zFnC0ZFQqrEIGcYq5vp4dHxQpf1P6Ap3WennXDTIFiGS3exHJlxKuT67mhDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=labrat.space header.s=201904 header.b=dTSzturi; dmarc=fail reason="SPF not aligned (strict)" header.from=labrat.space (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 6.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=labrat.space header.s=201904 header.b=dTSzturi; dmarc=fail reason="SPF not aligned (strict)" header.from=labrat.space (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3D83A3E408 X-Spam-Score: 6.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: yy82CpBMC7A+ On Mon, Aug 08, 2022 at 10:39:36PM -0300, David Bremner wrote: > e.g. query:python as > 'folder:reto@labrat.space/INBOX.lists.python-list' > This has the advantage that you don't have to retag when new files are > added, which is often the desired behaviour. Thanks, I do use queries for some things. I anyhow have a tagging script to do the initial tagging (also does some relatively naive spam removal, archiving of older messages, kill lists etc). Complicated queries just split the config in two then, some logic would be in the tagging script and other things in the config, which I find personally a step back rather than an improvement. Especially as I will have to archive the inboxes at one point or another, making the folder query fail (or me having to specify the archive dir in the folder query as well). Out of interest, how does your workflow look like? All based on folder queries? Greetings, Reto