From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0FGGNNY1mWDP0AAAgWs5BA (envelope-from ) for ; Mon, 10 May 2021 15:32:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6LxNMNY1mWAYCQAA1q6Kng (envelope-from ) for ; Mon, 10 May 2021 13:32:06 +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 670471B06E for ; Mon, 10 May 2021 15:32:06 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 351962717B; Mon, 10 May 2021 09:32:00 -0400 (EDT) Received: from mailproxy05.manitu.net (mailproxy05.manitu.net [217.11.48.69]) by mail.notmuchmail.org (Postfix) with ESMTPS id 9AB5627176 for ; Mon, 10 May 2021 09:31:57 -0400 (EDT) Received: from localhost (200116b860cf9d00f81ced0f73a7864d.dip.versatel-1u1.de [IPv6:2001:16b8:60cf:9d00:f81c:ed0f:73a7:864d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: michael@grubix.eu) by mailproxy05.manitu.net (Postfix) with ESMTPSA id A9D791B616E5; Mon, 10 May 2021 15:31:54 +0200 (CEST) MIME-Version: 1.0 In-Reply-To: <8735uukd6c.fsf@tethera.net> References: <60971dc77decb_22cb620817@natae.notmuch> <87bl9kjlgo.fsf@tethera.net> <8735uukd6c.fsf@tethera.net> Subject: Re: Is there a reason why the trashed flag is not synced? To: David Bremner , Felipe Contreras From: Michael J Gruber Message-ID: <162065351282.5824.14225420932746058853.git@grubix.eu> Date: Mon, 10 May 2021 15:31:52 +0200 User-Agent: alot/0.9.1 Message-ID-Hash: 74MD7MK37PZF2ZZX5FRPPUPGEEO6VALB X-Message-ID-Hash: 74MD7MK37PZF2ZZX5FRPPUPGEEO6VALB X-MailFrom: michael@grubix.eu 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: notmuch@notmuchmail.org 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620653526; 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-unsubscribe:list-subscribe:list-post; bh=GMiNI15dlwrBx5GHLCH7qyq8kfUiQZ82dhoXf6GGacM=; b=DpcpnD/tjThhSr0YDt60wAFHtHNqAEKNzlIUFRuJ9cCP7cKZZl+mS0UwYHjuO647FBpPyl apEAz8hr2C2vUnosmxf06eDWISfwWhVgSFOS61n/M/E2yiN8k70uGA1tGtLBUK2Mrf+4se uNRStTT6IexfKKicFVmV+dHg/Qy6+lJgJHrnBulEPI9eKIoBt9Onz1CvMT3avRss3QrdV4 z1RNDjx+B5j5cqhftpktkb0GKICI4DNAQyi4tx41jnDxxs35Lg3HxN0wgjetrm2nAqvE/F L+DaEG139Fj8VtC6RWFSmGzWctB4XcBhuLQWxKkb6YbiCu0Rs2EKTSQhAK4jug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620653526; a=rsa-sha256; cv=none; b=ZSLRU+a3AV+72NYvI5bQ7NxpGUMjph90J7cfDpNgSfsZfpXZAOlkOS5NpwiRsDPLdS1qIX tQQzSvm+RMvSki5y0UCsA3oT0CaQT6NHlGGUe4yakfMoo7B/d5brIYQ3JABzxu/AC3JEMp lTwqhCeolPkY0O5O7yQReCJNRamM9GNql85DFWXmmprwrQIGP07SkyQ9GfQa3DZhm/a/bL ycfV+wUjYn6RHUZ10ZAYKm3XZh6C1Pz06/41IqP2G87HnimM3kCcg9fzI7Q9jRBpVtmOBB Ar1mDJWuVp7D/5O4IvL7NKT6DDE5qE+OruQBXAHckF1WH97VQ6bWkQDZOpj9bw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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-Spam-Score: 0.14 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 670471B06E X-Spam-Score: 0.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: xZX3d4u8hoTA David Bremner venit, vidit, dixit 2021-05-10 14:04:27: > Felipe Contreras writes: > > > > > It makes sense that by default synchronize_flags=true doesn't sync the > > trash flag, but what's wrong with a new configuration > > synchronize_flags=all that does? > > > > That seems plausible to me, but I'd like more input in case I missed > something. What happens if you have multiple copies of the same message, some "unseen" or "replied" etc.? notmuch synchronizes them with the flag on the message and in turn with all message copies, and this works "as expected" because, for example, there is no "unseen" flag but a "seen" flag. Well, partially. What happens if you mark a message unread (clear the "seen" flag) in one account? Notmuch will see a changed message file for one copy - will it reread all files for this mid and reconstruct the flags (thereby overwriting the unseen with the seen from the other one)? (Honest question, I don't know.) Deleting by chance is more harmful, yes. But is it more typical to clear out duplicate files using "T" or to delete a message (i.e. all it's file copies)? I'd even argue for the latter, at least for supporting "maildir.synchronize_deleted" in both directions. To be super-safe, one could special case this to take an AND of all message delete flags: "unread" already acts as if it was an AND of the unread flags of all copies (because it's the negation of an OR of seen flags). A one-sync, however, can be confusing, I'm afraid. Personally, I use trash folders synced with flags (through mbsync+afew, gmailieer) togther with the typical 30day clean-up. Has worked well so far. Cheers Michael