From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id PVw7IUB36F/+WgAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 12:00:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SP2OHEB36F8QDwAAB5/wlQ (envelope-from ) for ; Sun, 27 Dec 2020 12:00:00 +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) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9E9C29404C4 for ; Sun, 27 Dec 2020 11:59:59 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A833429C8B; Sun, 27 Dec 2020 06:59:51 -0500 (EST) Received: from anarres.sindominio.net (mail.sindominio.net [IPv6:2a01:4f8:10a:3925::4]) by mail.notmuchmail.org (Postfix) with ESMTPS id 5FB872710B for ; Sun, 27 Dec 2020 06:59:48 -0500 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by lesnaus.sindominio.net (Postfix) with ESMTP id 7699D36285D for ; Sun, 27 Dec 2020 12:59:33 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 lesnaus.sindominio.net 7699D36285D Received: from anarres.sindominio.net ([127.0.0.1]) by localhost (lesnaus.sindominio.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 91k7zbessEid for ; Sun, 27 Dec 2020 12:59:28 +0100 (CET) Received: by lesnaus.sindominio.net (Postfix, from userid 108) id 972A33628BC; Sun, 27 Dec 2020 12:59:23 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 lesnaus.sindominio.net 972A33628BC Received: from localhost (37.red-81-44-246.dynamicip.rima-tde.net [81.44.246.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lesnaus.sindominio.net (Postfix) with ESMTPSA id 4844E36285D for ; Sun, 27 Dec 2020 12:59:18 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 lesnaus.sindominio.net 4844E36285D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sindominio.net; s=mail; t=1609070358; bh=KneFFDdGAhNPbxGZEroqGzVvaxOeW9MgOI8OKwzCGJo=; h=Date:Cc:From:To:Subject:References:In-Reply-To:From; b=TOa97f2CBb2+WWCqc7JDhDPOlMRYydnSRl1ecZyNhMFjI5+ea/f7HvGY82mIRBd4q YNJ/P2ychsOqjrQ06FqPqEOo1+oyPEbEEYhblBSntHx5AZN+LxXUD9SpgPmFhfeX9Z Z5ZEhGhF0I83B5iImq/rbTMYNXpoIm5Es+t1wjPoijicQ+5G/Op+qchwVFAD7qA7Ix oKTUJBV4eL+v3B4wktd4541P8McuTT5qwrYeNNyvErLwIK9uUzDAEagXBEF6RfFcWi e+v2/w+b6f7xDq1m37G4aI7ZfHyKREzWSgaOMS2JAAn9xJ80PC0BYkxExOKSEAnwx2 R6mIpHc1eVekuBAWWRZgM0jerJgdmvFYxMsoFpElXbosgCU1isSTCauzTiBV3S8RkT k1DcL55yNN7ec5l0yj7e65dALQH5I+D2r/+x6HZgyyHndRPMtxK0GH/ZIt6FVEDm/s nJvt/8YDeZoJWScACxFodBE2KhARvdl2VQWhOMBWrIVc/OAZuFowoOKzV2o2x6vW8T s5CbBzZW5TUdNJgXLJjJFg305K4Y/sgPKCIy0w6e5mWl6dqArh5S2MNnuAa7jbblJJ rx9RkwZqxcI6yyifG6ApBM5vYlbKcKAX6PZ327yV5u/Ur0oXOPQHZ953agnWE00fbC 7rs6rfRUHUxwzI2kaeIY0ptc= Mime-Version: 1.0 Date: Sun, 27 Dec 2020 12:59:16 +0100 Message-Id: Cc: From: "inwit" To: Subject: Re: Folder+tags References: In-Reply-To: Message-ID-Hash: XAKULVOYKR2Y77ESYPFNKNQP4F7JYIKV X-Message-ID-Hash: XAKULVOYKR2Y77ESYPFNKNQP4F7JYIKV X-MailFrom: inwit@sindominio.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; suspicious-header 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 X-Migadu-Spam-Score: 1.55 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=sindominio.net header.s=mail header.b=TOa97f2C; dmarc=fail reason="SPF not aligned (relaxed)" header.from=sindominio.net (policy=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: 9E9C29404C4 X-Spam-Score: 1.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: waqC3HwYKI9y Ok, I've been thinking more about tag-folder synchronisation and reading everything I could. However, I need some guidance. I think that maybe the cleanest way to go is to have an after-tag-hook which, if the recently added tag corresponds with a folder (as produced by afew's FolderNameFilter, for example), then moves the file of the message to its corresponding folder. Does that make sense? Another alternative is to write a new 'tag-n-move' function which would do both things, calling 'mv' through 'shell-command'. What do you think? Salud, On Wed Dec 23, 2020 at 12:53 PM CET, inwit wrote: > Hi! > > This is my first message so I'll start by congratulating all the > community around notmuch. Great piece of work you have here! > > I guess that my question must have been surely asked before, but I can't > seem to find it in the lists' archive. My excuses if it is the case that > my search abilities have failed. It has happened before. > > So, what I'm trying is to have a notmuch system up and running while > preserving my folder structure fully functional in the IMAP server. I > know that most of you will agree that folders are a thing from the past, > but the fact is that, in the past, I've devoted quite a lot of time to > sort my mails, and now I have a 3-level subfolder structure which is > hard-wired in my brain, so up to now sometimes I'm still keen to > searching messages in their expected folders. I guess it's a matter of > time until I abandon this scheme and dive fully into tag based email, > but for the time being I'm afraid of losing that folder structure for > good. > > Anyway, I've been reading all around the web about this, and the closest > I got is using the aerc client, where I can configure a Maildir worker > and a notmuch worker, being able to use the former for reading and > classifying mail into folders and the later for tag-based searching. > This works, but at the same time, no matter how exciting the development > of aerc is (and it is a beautiful little piece of code), it is still > very far from emacs mail-mode. > > What I would like to, then, is to use notmuch-el to read and classify my > mail. And the functionality I'm missing at the moment is a way to move > an email from the inbox to its corresponding folder, hopefully updating > its folder tags at the same time. That is: I would (mb)sync my mail from > my company's IMAP server to my Maildir folder structure, then I'd go to > the Inbox tag/folder, I'd read my mail and then, by hitting Shift+m, for > example, I'd be able to move that precise email, both in files and tags, > to its corresponding Maildir folder, so my next call to mbsync actually > moves the message in the IMAP server folders as well. Does that make > sense? Does anyone know how would I get to something like that? > > Again, sorry if this is redundant, and congratulations on the good work. > > Salud, > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org