From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SLqhM0zjFWPvAAAAbAwnHQ (envelope-from ) for ; Mon, 05 Sep 2022 13:53:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EEeTM0zjFWOfLQEAauVa8A (envelope-from ) for ; Mon, 05 Sep 2022 13:53:48 +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 91FE516686 for ; Mon, 5 Sep 2022 13:53:48 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CCFDA5F374; Mon, 5 Sep 2022 11:45:02 +0000 (UTC) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by mail.notmuchmail.org (Postfix) with ESMTPS id CED715F36E for ; Mon, 5 Sep 2022 11:45:00 +0000 (UTC) Received: by mail-io1-xd29.google.com with SMTP id q81so6644581iod.9 for ; Mon, 05 Sep 2022 04:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=cXzP4zT85nNiwWXye+rkQCcXCB9qaDpri4bU8XRy1rQ=; b=e/uPUMy1zBQE+tUDwtrs6YbreiROdDaiWI1xwf4JVxDUjIL81qLt27yNnLiaXP8T4G RYQHE6yY3xpxLYYFUw1rW05hIQTH5dUTQCdV8sGxPD2ILlku5Uft4Wq1on57GX/HXKKp bAJqiEKLqRIyksV1aolZttxwJexUg9yf1j8IOSVPcsODlFLxWGt6slMMjexaF0arfoWw C1/e3YQjDNc00R0EpIdOvk2EETlpZFi0zaAnZk/bOcqPB+t0QX97Fft+4oOEKvKusCFu MRh0SqhJS+1pMo0TkD6We0MMIhs5gTkcIvM/hO5fTtEaW+wePMcZzfeRZwcFMGjPoKCS Wi/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=cXzP4zT85nNiwWXye+rkQCcXCB9qaDpri4bU8XRy1rQ=; b=nLaxb2eUPBiDeNKU6ZINaTSHK2aE+QqWNWxXvKBdApQm+R4Iau6RmBW73F+MHcueJB zoQSFl/42g3mHSQ63Jd32ob5GBFX+Gb+i13S9lVS/d8ch0PwWhwGiFF/Yog55b8X9C7c 9AdUMU5r49MA4YP2M1QAnBef/YqM1QwblVUa/hnnqbzlMAfqkzT+vph1qx1TxpfB3MdU uJ1RUgr6P4jk5kNCgKmWy/VyvWV+rhv6t3RXo/GX5d8egOdP99MmN63q9uQl2R9fs0M0 mnJWKj7ItEDj/Dz6VOWsd3Kuo946ZpOLVFJbbbPPQt8h+dtNkyxTxeflVyN6x44C/KU4 kjNg== X-Gm-Message-State: ACgBeo2dZpQgcExRh+JiIz1dYovJ5Hvd8JvYDjbXjpcTSo0lsmksd0mP Q0STqPLQ8WY2CHCN7aDkn0IPg+0MrxezqHRQ/sS/kkUO32qqMg== X-Google-Smtp-Source: AA6agR7ZFxP5bsWppU4QBxKatSgchuSYUyKBRCQljK/IOmpelqizfIMLe5O0E1EtOoqcA1R3AiaQe44TtSPMNyKiUEY= X-Received: by 2002:a05:6638:dc2:b0:351:f7a4:c3ea with SMTP id m2-20020a0566380dc200b00351f7a4c3eamr3383521jaj.4.1662378299259; Mon, 05 Sep 2022 04:44:59 -0700 (PDT) MIME-Version: 1.0 References: <87h71m5a44.fsf@tethera.net> In-Reply-To: <87h71m5a44.fsf@tethera.net> From: Michael J Gruber Date: Mon, 5 Sep 2022 13:44:48 +0200 Message-ID: Subject: Re: best practices for keeping a notmuch tag in sync with maildir folder To: David Bremner Message-ID-Hash: IEDVCOWNTAVM5BQVGGMS6V56VTG4LU6B X-Message-ID-Hash: IEDVCOWNTAVM5BQVGGMS6V56VTG4LU6B X-MailFrom: michaeljgruber@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; digests; suspicious-header CC: Bence Ferdinandy , 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=1662378828; 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=dkRps2INVZ1omMBqY7RI7k+XDz/DnwOn9XSBIe6vm0I=; b=Fw37YY1SeZIvdG4QEQ9PK2P0Nl0tgxilayyh5SkIzCLP1laRWqGIiKTFAV1RzY3itFl4Qg p0hENG9DMHg7P64Zg2rSfrDtL7DiGZqEhN9RfYk+dcCI9yxABTCbXbGgNXDXYlZbj22HR2 t+1adKhO8spZ7YYpFz9mTVwr9EpCVj0s1SEIEBSZtJhN6dximynyW5fqdR/bKfF2Vn84sX BwF9miFLCNtvpatr19AXCojBDqBFRv1n/jng0ltKC8N4TG6TSelLP/4lctl7dKnnYEgGNH /irzJUxisPfDOrO5bIuFExCOR1wW9eKWv85qZh5ljWlTivLRo/U6cPQI4zWpxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662378828; a=rsa-sha256; cv=none; b=HJEJfUSUj2OksGRNvRESQgwRKo5HhEYIgTK9/lNsPa2pNFLoDWpzVcdsvsx/V3CY9m777w 5mGXTch0EibTOSeeg4qCEfYNUDHEMJ9mbtjgvfn/rHmy0wKI6hZvQfColmNWR3ReTXNVIk ud5oCyLTw2Vml+dwX6BQKuORqUhRYE9klFgtGRL15vkQ3WZHeUBjGmKWjLdfAkqAMpap6x EQvZpQMIF0Z+68sJ+LgjTKKB6g4YkJJSI8WiHl3PZ/1fHc6hLwI3zJbTa3LKoAgGFNvmN9 xGeCDfAk3PEpSsjZQQsPwAggnNG3qrOgeSLdeQkNnIczYNyKnnZNyLVcAOPuyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b="e/uPUMy1"; 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 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 6.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b="e/uPUMy1"; 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 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 91FE516686 X-Spam-Score: 6.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: Bg/Ta3E2sIeE Am Mo., 5. Sept. 2022 um 13:33 Uhr schrieb David Bremner : > > 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. Yes, that is the main issue, as well as "by design" if you use mbsyncs "native" scheme, which is the fastest option. Alternatively, you can use the "alternative" scheme ;) You can also make sure to drop the uuid part from the filename when you move things around. But for keeping things in-sync you might want to look at something like https://github.com/afewmail/afew which allows you to specify mappings. Personally, I ended up mapping only coarsely (things like Inbox, Spam, Trash, Drafts) and using tag based search in notmuch. Well, plus mapping some list headers to tags, moving messages between accounts based on labels, and ... It's really versatile, and the information is "stored in the tags" (plus folders), i.e. it does not tie you to an extra db or such. Michael