unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jaume Devesa <jaume@devesa.me>
To: inwit <inwit@sindominio.net>, notmuch@notmuchmail.org
Subject: Re: Folder+tags
Date: Fri, 25 Dec 2020 09:04:19 +0100	[thread overview]
Message-ID: <160888345994.20118.5699795014251176102@void-490s> (raw)
In-Reply-To: <C8057C8XE75K.3LCO6MVLH9IJR@bisio>


[-- Attachment #1.1: Type: text/plain, Size: 1443 bytes --]

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?
> 
> Again, sorry if this is redundant, and congratulations on the good work.
> 

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/

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,

[-- Attachment #1.2: signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

-----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-----

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  parent reply	other threads:[~2020-12-25  8:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-23 11:53 Folder+tags inwit
2020-12-24 13:59 ` Folder+tags Alan Schmitt
2020-12-25 16:41   ` Folder+tags inwit
2020-12-25  8:04 ` Jaume Devesa [this message]
2020-12-25 17:27   ` Folder+tags inwit
2020-12-27 11:59 ` Folder+tags inwit
2020-12-27 13:12   ` Folder+tags Tomi Ollila
2020-12-27 17:14     ` Folder+tags inwit
2020-12-27 21:09       ` Folder+tags Tomi Ollila
2020-12-28 16:51         ` Folder+tags inwit
2021-01-03 18:09         ` Folder+tags inwit
2021-01-03 20:01           ` Folder+tags Tomi Ollila

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=160888345994.20118.5699795014251176102@void-490s \
    --to=jaume@devesa.me \
    --cc=inwit@sindominio.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).