Re: Tag hook

Subject: Re: Tag hook

Date: Mon, 26 Nov 2018 00:55:50 +0900

To: Jeffrey Ratcliffe, notmuch@notmuchmail.org

Cc:

From: Leo Gaspard


Jeffrey Ratcliffe <jffry@posteo.net> writes:
> Is there any suitable hook in notmuch? Or will I have to write some
> lisp in notmuch-config.el? In the case of the latter, has anyone
> already done something similar?

Not exactly what you're asking for, but I personally handle this issue
with commands like this in my automatically-tagging script:

```
notmuch search --format=text0 --output=files tag:junk and not folder:Junk | \
    xargs -0I '{}' mv '{}' /.../Junk/cur/
```

It's not exactly a tag hook, but as it's run before and after any sync
with my IMAP folder, it works well enough for my use case.
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: