Jani Nikula <jani@nikula.org> writes: >> >> $ notmuch tag $(notmuch search --output=tags '*' | sed 's/^/-/') \ >> id:foo@example.com >> $ notmuch tag $(notmuch search --output=tags '*' | sed 's/^/-/') \ >> +foo +bar id:foo@example.com In the special case that the query really is a message-id, the following should work echo "-- id:foo@example" | notmuch restore --format=batch-tag should work. Weirdly, that seems to even remove that attachment tag, I'm not sure if that is a bug. Anyway your patches are more general. Sorry, that's not a review yet. d