Tag hook

Leo Gaspard notmuchmail.org at leo.gaspard.io
Sun Nov 25 07:55:50 PST 2018


Jeffrey Ratcliffe <jffry at 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.


More information about the notmuch mailing list