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 ms5.migadu.com with LMTPS id hfXZAZPeFWMdXgEAbAwnHQ (envelope-from ) for ; Mon, 05 Sep 2022 13:33:39 +0200 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 2PvfAJPeFWNgegEA9RJhRA (envelope-from ) for ; Mon, 05 Sep 2022 13:33:39 +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 C2936364EA for ; Mon, 5 Sep 2022 13:33:38 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A42025F37A; Mon, 5 Sep 2022 11:33:36 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 381F05F36E for ; Mon, 5 Sep 2022 11:33:33 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 7A4D25FBC0; Mon, 5 Sep 2022 07:33:32 -0400 (EDT) Received: (nullmailer pid 1888545 invoked by uid 1000); Mon, 05 Sep 2022 11:33:31 -0000 From: David Bremner To: Bence Ferdinandy , notmuch@notmuchmail.org Subject: Re: best practices for keeping a notmuch tag in sync with maildir folder In-Reply-To: References: Date: Mon, 05 Sep 2022 08:33:31 -0300 Message-ID: <87h71m5a44.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: VN5SVWU7HES5OK7JTM5YOTHMQLSTETMC X-Message-ID-Hash: VN5SVWU7HES5OK7JTM5YOTHMQLSTETMC X-MailFrom: david@tethera.net 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=1662377618; 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; bh=Olv6Shxf4LELJBmDUcV8GdUcaJtDjq06UgA5xqD9Li8=; b=t3fbJ3VqZrVdaFD5FP2OgXymQ6dJKAVvPnrQXne+MWZZ4DnLuMs2cL0d871phbMWEhY6Lv 37vJXgzZ/PiI8RS5XNw2UdioAbQrA3EkqUVOIgHfjMX389G8OmlGNo1U4fQrVdoBeUOJdK KMHrJAQQUsTbzmfIqUpg48gocJHLJYafl2FoVhCLPxM9HKxfKKSnWgKD0LartjkdpmBCBm 29PuCiiqLDktGXyLjYc6J20aLBnZ58E1QELvv5fC59MM3ZW9F49K49R8Xq3nvqtSSPuCov rmSntql//ev/A98hz2VVSTcLeb7zsgFQmCg5aF1bPBt5udqFHO1eCIVZPeVN+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662377618; a=rsa-sha256; cv=none; b=m5BKaoRNGPrsUga2xSXGxbRZzqTFgsaLXxt+CB+7MqaoBsksfVNP7XjlQMGJBxn3tLb1NJ 50z5p8bHf4VzRZ/NhW9c5tufSN1u7VnzHbqJORe70G23mwI3lY2OQf2lTxhQe94FTxlpy3 OxnLSVYwu7xc98/d/SGTxTPqsC8EWA6gwjBxBNnovpoEcz4ZYd4vlGB3KVW+Ix0bt56uou ydji3x+Q/lipDKxvq503r5MnzbLxiHdrJzA5zKva+Jrtt7PEHuQRoI0jfNc4Kjk53xC/aM KsaHkYI4WxcRLDYHjzs75ZinH5lpkMQekiDFoZgCbpJUdmtyVDM/XTaSz6Zrzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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: -2.29 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: C2936364EA X-Spam-Score: -2.29 X-Migadu-Scanner: scn1.migadu.com X-TUID: Y/7dP9SM7YvR Bence Ferdinandy writes: > are there any best practices for keeping notmuch tags synced with an imap > folder? It seems to me that simply moving a mail file in the shell from one > folder to the other is not something that works well, at least with mbsync > the moved file didn't appear in my webmail (I would like to keep a few tags > mapped one-to-one with folders so I have a rudimentary access to some tags > on my phone and webmail). As far as I know (as a non-mbsync user) this is only a problem for mbsync. Notmuch itself is fine with moving (or copying) files between folders. You will have to run notmuch-new afterwards. If I remember correctly mbsync encodes an IMAP UUID into the file name, but I don't know the details. I guess that the general mbsync instructions for how to move messages should work fine with notmuch.