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 OOxVFwWf5V87dwAA0tVLHw (envelope-from ) for ; Fri, 25 Dec 2020 08:12:53 +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 8F5IEwWf5V83KgAAB5/wlQ (envelope-from ) for ; Fri, 25 Dec 2020 08:12:53 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 B58AD940274 for ; Fri, 25 Dec 2020 08:12:51 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4F0AF29CCA; Fri, 25 Dec 2020 03:12:42 -0500 (EST) X-Greylist: delayed 476 seconds by postgrey-1.36 at nmbug; Fri, 25 Dec 2020 03:12:40 EST Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050::465:202]) by mail.notmuchmail.org (Postfix) with ESMTPS id 8E33128536 for ; Fri, 25 Dec 2020 03:12:40 -0500 (EST) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4D2KGk28q0zQlS2; Fri, 25 Dec 2020 09:04:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= message-id:date:date:from:from:subject:subject:references :in-reply-to:content-disposition:mime-version:content-type :content-type:received; s=mail20150812; t=1608883466; bh=3OHk6VT AbRgGAxbs0/rCIyvl8mrPubqmG04IAZw50hA=; b=nZUO3PcKioU9uqgbbZBmc1P Yd8Tjmkxk9U7PVPgElWydZVlTPiBowApzPPzhnOXAkASZG01d23uVDUhlj0jdv4X krN2dgUwXNGd7QIkWgGCXc1+6dIpMkYFXUMHzd7nKgl7qLeQD0pXS/NK7zRUHAHI 8cIdQI/lll5aOTpP9tf5WG70yXE+aJLbOhAwcTyMsocDth2W343eGF0PkbFjwVO3 QqywgqKZClHiejCflCvNMSV0nm0aROzSOXfLvY2SXKSatjXE0O4Zuni/mHGwNXEJ oNhSQSWnB22hTFwE8Hj0Y/Hyg+ejToaR8Q5XWQY0JMWuawPs9UX1lALBKZXnPTQ= = X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id W3Ib5cPcVlxS; Fri, 25 Dec 2020 09:04:26 +0100 (CET) MIME-Version: 1.0 In-Reply-To: References: Subject: Re: Folder+tags From: Jaume Devesa Cc: To: inwit , notmuch@notmuchmail.org Date: Fri, 25 Dec 2020 09:04:19 +0100 Message-ID: <160888345994.20118.5699795014251176102@void-490s> X-MBO-SPAM-Probability: X-Rspamd-Score: -2.94 / 15.00 / 15.00 X-Rspamd-Queue-Id: 4ABD71711 X-Rspamd-UID: 7c44e7 Message-ID-Hash: ZQBPXZA7P7WLBOHOLHEM3O6MKOQDRTVK X-Message-ID-Hash: ZQBPXZA7P7WLBOHOLHEM3O6MKOQDRTVK X-MailFrom: jaume@mailbox.org 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: multipart/mixed; boundary="===============7809975875749798364==" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.00 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=mailbox.org header.s=mail20150812 header.b=nZUO3PcK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B58AD940274 X-Spam-Score: -1.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: RVVW+iQN86Rg --===============7809975875749798364== Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="===============6940229710188252883==" Content-Disposition: inline --===============6940229710188252883== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, > 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? >=20 > Again, sorry if this is redundant, and congratulations on the good work. >=20 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=3Dfiles --format=3Dtext0 \ folder:mailbox/INBOX -tag:inbox | xargs -0 --no-run-if-empty \ mv -t ~/mail/mailbox/Archive/$YEAR/new/ So just before offlineimap starts another round of sync, the emails tagged as 'not inbox' inside the INBOX folder are being moved to the Archive/${YEAR} folder. I've never used emacs, so I ignore if you can do something similar by binding keys in emacs (but I guess you can). Hope that helps, --===============6940229710188252883== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEhwK6jQKH61pINcppMUCWBWUVQ+MFAl/lnQAACgkQMUCWBWUV Q+Omfgf+LDH8hjXtdJM2Z1nnIyOv8WPrKQJfabhf1cyMq4Gz3rZBDSQd8kLhevfn 9pxVCsY54SUEnC7T3mBcV4Kqzx6Kiv4HLjtbRgkDdJL3kGAU7y7pzhtakMIpOEKa 8XHO7RJdMd+l4mf1MLCm7YBbDcyD7oPXTUiJg5/3do7ZfY4T/Ri9gLtQQVDvKbNu 8WEeciTFGVw+DxWGjJ2tsBopN8fheGpdKRugwMSU01K+7Dv3X524/mMk0YEoeOT4 sqH8WiQRcAqzFh5aLj3QexeebkJfqEi8JQzgdjx/pQ8l1JO8cozZzYYo5jYcfE7E ybJkFyC28+4/HC5N1db3FQyQPdpTiQ== =JGWp -----END PGP SIGNATURE----- --===============6940229710188252883==-- --===============7809975875749798364== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7809975875749798364==--