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 SpDJJw4h5l/NdgAA0tVLHw (envelope-from ) for ; Fri, 25 Dec 2020 17:27:42 +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 aLMqIw4h5l8AKwAAB5/wlQ (envelope-from ) for ; Fri, 25 Dec 2020 17:27:42 +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 6548D940429 for ; Fri, 25 Dec 2020 17:27:41 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D86A129CCF; Fri, 25 Dec 2020 12:27:34 -0500 (EST) Received: from anarres.sindominio.net (mail.sindominio.net [IPv6:2a01:4f8:10a:3925::4]) by mail.notmuchmail.org (Postfix) with ESMTPS id 33D3229CB4 for ; Fri, 25 Dec 2020 12:27:32 -0500 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by lesnaus.sindominio.net (Postfix) with ESMTP id 17352365729 for ; Fri, 25 Dec 2020 18:27:31 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 lesnaus.sindominio.net 17352365729 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 jhs2jL3p4uI7 for ; Fri, 25 Dec 2020 18:27:29 +0100 (CET) Received: by lesnaus.sindominio.net (Postfix, from userid 108) id 315653656B8; Fri, 25 Dec 2020 18:27:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 lesnaus.sindominio.net 315653656B8 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 0D46236555A; Fri, 25 Dec 2020 18:27:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 lesnaus.sindominio.net 0D46236555A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sindominio.net; s=mail; t=1608917247; bh=z0IB3t6w/vTmGuksDCQppMQ5faoRKpP5+KHOdtfwLVg=; h=Date:Cc:From:To:Subject:References:In-Reply-To:From; b=IDpSoUS9ggxmVcEVJi+ojkednRMtFsJkooD5Hns0eE5RWXzpksdy1G83u3fsxdSJk xyEm35jD0c2TmaNBacqfDwUtqvvmKKQV67bbtgQwrQ5MKBq2e3W1wp+u+aVqb+MSJs BcOJieAEqt67ZzNqs264MxftW1UhMz8f/xy+im3ERUjYdYRoMj7JaPv+kXs1bjLeOo Q6prHT5cldcNZJZqixFMCWGxca0eGQlHypm6vRJqIfNHO3dznxB5Y66D0cH84NWmtI nSS4YqOKD1GGucCsN+uXYAUVfQL4Z7xDxKHg5Mfom3oxqF5jud5kJFJ+jzQXmVXQOs hiHTrbBQ3GKOEp95t9HIwRd7tT6okhLZf8ZU+t1bjdjPR2R+sli9sWnwAAoi1SrrQQ 24fvLHN7mK1oY4BoGC57lbl7XneI7uedrrrHaJQJMVG4DzUevEuNvtoeMM9ta6n7bV m9gSmyUhMFetAXWbo+rx3Z6ggCwnWQiPeO0jeKXGCd7lB/wcaJq3FXYRUzJZndhdQ5 Bl8rIP/CV+3xvyYknrIgmKw3nqqSmrUx/34xAWiGUl+ndzZSP508GOD1BZuaSYAC5m t5+DPCXDUjnr5MbDUIoWOHGGcEAv3iy5greWXn9PuI8YSnlfDprw5eIzUmqPEv0cb2 wjPYW4InNv4ky6m7pcTTthnU= Mime-Version: 1.0 Date: Fri, 25 Dec 2020 18:27:24 +0100 Message-Id: Cc: From: "inwit" To: "Jaume Devesa" , Subject: Re: Folder+tags References: <160888345994.20118.5699795014251176102@void-490s> In-Reply-To: <160888345994.20118.5699795014251176102@void-490s> Message-ID-Hash: JTPXPHYNUKPSYEHNZTMR2CJALKHX35ZL X-Message-ID-Hash: JTPXPHYNUKPSYEHNZTMR2CJALKHX35ZL 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=IDpSoUS9; 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: 6548D940429 X-Spam-Score: 1.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: Ur3+f3Txkq6t On Fri Dec 25, 2020 at 9:04 AM CET, Jaume Devesa wrote: > I sync my email with offlineimap and I do something similar, but using > the `presync.sh` hook that offlineimap provides, via simple `xargs`: > > notmuch search --output=files --format=text0 \ folder:mailbox/INBOX > -tag:inbox | xargs -0 --no-run-if-empty \ mv -t > ~/mail/mailbox/Archive/$YEAR/new/ This is what I was considering so far, but the truth is that my emacs lisp programming capabilities are still not that strong. In any case, I guess I'd need to parameterize the command you propose, thus making it applicable for any folder/tag. Something like: notmuch search --output=files --format=text0 tag:$1 AND tag:inbox | \ xargs -0 --no-run-if-empty mv -t ~/mail/$1/new Then I should plug this somehow into the notmuch-after-tag-hook, where the recently applied tag and the message id should be available. Does that sound reasonable to anyone in the list? > I've never used emacs, so I ignore if you can do something similar by > binding keys in emacs (but I guess you can). It is possible for sure, but I'm afraid it'd take an actual lisp programmer... > Hope that helps, It does. Thanks!! Salud,