From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cN5MFKIoOmJ1XAAAgWs5BA (envelope-from ) for ; Tue, 22 Mar 2022 20:50:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KNWgEaIoOmLJPAEA9RJhRA (envelope-from ) for ; Tue, 22 Mar 2022 20:50:58 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 E47FD3F975 for ; Tue, 22 Mar 2022 20:50:57 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CCEC45F700; Tue, 22 Mar 2022 19:50:55 +0000 (UTC) X-Greylist: delayed 393 seconds by postgrey-1.36 at yantan; Tue, 22 Mar 2022 19:50:53 UTC Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mail.notmuchmail.org (Postfix) with ESMTPS id 0F8B75F6CF for ; Tue, 22 Mar 2022 19:50:53 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 84CC13200C4A; Tue, 22 Mar 2022 15:44:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 22 Mar 2022 15:44:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=e1R9wl1rAaev8NQ7iSDEhPlO6dNu4jzp33ujCd uXJI4=; b=sLRSrfYcINV/OB8bm+IIEcoodSQ44BDLBiOpP0JMLnpYx6wamwUCGk OB0d0roC9357er4tttQ2P0eQt1nfmxTSqVKvzS1jtSvSdWOSkxr4ExGmNcqdDsdY 60bxI9S3Y9Ud+RU36GHse/ajw7v+yCGV9Lce0O/WUhH1rIlvBC5IVuvCmoQifpU1 2pWNGE4BsOhFnZljud69m9VBdDIvL54m01oQKqrpUK9ZrxU6ZQR38KJ5sl5LRQJt c+LmRU3Niedj5l4ofuzoipyZZRHnLKwqx2tZkBCh/jEZ4JOEiBSsvd8P+dwFzDoo 6J7vgUV0SuhjSc+auJ7hfhlP+XhiYJ7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=e1R9wl1rAaev8NQ7i SDEhPlO6dNu4jzp33ujCduXJI4=; b=MzhZCKt4c0kQ3sZ2Q9x1Y0qxXa2abqvSs eFmD6SYoZsEaspTqHr/a3izBYA0dYpKrIBvJNVa8Q0uhukb+JQ1U4W/2Z6lJ+wn5 FWcWX4aNmsQlGrHGwh/R6ESozOlVKjaVzsKcYaVDsuBu9mLy4nX+zYo9RuuyODwj lSlsdgzpIzud9Cwir0jsxwBMG/FQDtexltGL3jZWK918ofMmyevO3qF+2ADLLaeE 6eN7K2PzmCfOe1/KQNSv58EnegAu5lXYgaFeaj79csaIm075N+n9ot2/Sf17ZnTu GwjeAnTeuUa3WrkQ2GXKSXERNYzbMPATdgmP23zxQ88FRJM+6uRXQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeghedguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujghffgffkfggtgesthdttddttdertdenucfhrhhomhepufgvrghn ucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpeelgeeggfdvieejvdfhudfggeetgfekkeeuieeljeejhedu geegfeetgefhueffkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 22 Mar 2022 15:44:17 -0400 (EDT) Received: by melete.silentflame.com (Postfix, from userid 1000) id 64C357E3E25; Tue, 22 Mar 2022 12:44:16 -0700 (MST) From: Sean Whitton To: David Bremner , notmuch@notmuchmail.org Subject: Re: Forcing a sync of maildir flags? In-Reply-To: <87r1ypsb1p.fsf@tethera.net> References: <871rqp97o0.fsf@iris.silentflame.com> <87r1ypsb1p.fsf@tethera.net> User-Agent: Emacs/29.0.50 (x86_64-pc-linux-gnu) Date: Tue, 22 Mar 2022 12:44:16 -0700 Message-ID: <878rt122nj.fsf@melete.silentflame.com> MIME-Version: 1.0 Message-ID-Hash: NF45AZQONMFYKX4KH67HWQUJ7TC26BG2 X-Message-ID-Hash: NF45AZQONMFYKX4KH67HWQUJ7TC26BG2 X-MailFrom: spwhitton@spwhitton.name 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 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=1647978658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to: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=8HHdf/Eb8xIcYm7cjSGSx8uC/YDnJ44LR2v4EGcEPaw=; b=swA+DTWkD32v2jSIVT/DyEnSwOY2sfhZYHEO2GHJp9iZrucx0LN/MHP517SiNHg64Arn92 fk91KGBwNottcDLwLxfuMMwcCDTPyyKArFM3677vWbE3F6Ij5pRKMAhcsNLpQoGufqz0Gz IFAR9InoAASYoWt+Ur9275kBL5thMIeYpvqYbE/wgJ4hc9wLV8k6vmXq+tYMdTYLs7IrMS 9hd6hPutZfjtARgphEEebsSIRBuEBaneoSA4j/6Y8WAL2MN7ZFm+ev1odwdRy6AWDdA8rq UvvK+SLM9wWioZBLuG1etylIJuQHavQd08TJUSiTdoWzVNvJo815CLK6W93sDQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647978658; a=rsa-sha256; cv=none; b=OpX7zRNb9ZpIwQn89cPWoShKlYiEdDZbWOEGGAB/u62DDo23n+P4+Zc34Gr/sQZpoTcsb6 EQwoJfsLYx4SgiHTRd6NK3/r14rsLcKXbsP9++Voacm1/eLbz8S4HvW9Opn4I7RsbxkuKx LzOuG8gnESQ9aFPv9XthPokPM9j3lyuG9fbxAGWHZ3TGsbF5zvh1YsdHkPv92LF+eqVBHl 19o5NLfw2Z1mI9LSZzPkymXlbgq5tJFd0MlfF/8f4jLnzLeMJRL5sA4hXVJezWw2GexBZy qKGC8Vbi3GfP0FWb6Zrf/KC8ejbVspFiRkFAwdRTQNQZ2azIjfPfBd7QhqrsMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=spwhitton.name header.s=fm3 header.b=sLRSrfYc; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm3 header.b=MzhZCKt4; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 2.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=spwhitton.name header.s=fm3 header.b=sLRSrfYc; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm3 header.b=MzhZCKt4; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: E47FD3F975 X-Spam-Score: 2.73 X-Migadu-Scanner: scn1.migadu.com X-TUID: EcYJC3cYC/Lc Hello David, On Thu 20 Feb 2020 at 08:22AM -04, David Bremner wrote: > Sean Whitton writes: > >> I have this in my post-new hook: >> >> notmuch tag -unread -- folder:sent >> >> The idea is that copies of my sent mail which get returned to me and >> stored in my inbox, e.g. by mailing lists, would get maildir Seen tags >> added to them. But that does not happen. > > I guess this is most likely a bug. It would be nice to have a test in > T340-maildir-sync.sh that duplicated it. I suspect the problem is > related to messages in the new/ subdirectory. Some non-notmuch clients > (prominently mutt) interpret being in new/ has having user-visible > semantics, so notmuch tries not to move files out of there > unnecessarily, On the other hand the maildir spec says that files in > new/ cannot have flags, so they cannot have their unread tag removed > without moving the file to cur/ I am seeing this bug, or a closely related one, a whole lot right now. Messages are coming back as unread over and over again. I recently made some changes to my notmuch cronjobs, so that probably has something to do with it, but I have no guesses as to what the problem is. As a first thing to try, I am going to add something to my pre-new hook to perform the new/ -> cur/ move as specified by maildir(5) on all my synced maildirs, so that notmuch never sees messages in new/ except when it writes new drafts and sent mail there (and they'll get moved on the next sync). I'll drop the 'notmuch tag -unread -- folder:sent' workaround at the same time to see what happens. -- Sean Whitton