From: "inwit" <inwit@sindominio.net>
To: "Jaume Devesa" <jaume@devesa.me>, <notmuch@notmuchmail.org>
Subject: Re: Folder+tags
Date: Fri, 25 Dec 2020 18:27:24 +0100 [thread overview]
Message-ID: <C821KAFB02Q4.1UZ4JYPEZ4CXC@bisio> (raw)
In-Reply-To: <160888345994.20118.5699795014251176102@void-490s>
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,
next prev parent reply other threads:[~2020-12-25 17:27 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 ` Folder+tags Jaume Devesa
2020-12-25 17:27 ` inwit [this message]
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=C821KAFB02Q4.1UZ4JYPEZ4CXC@bisio \
--to=inwit@sindominio.net \
--cc=jaume@devesa.me \
--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).