fuzz-notmuch-archive-inbox (275B)
1 #!/usr/bin/env bash 2 set -eou pipefail 3 threads_cmd="notmuch search --format=json ${@:-query:inbox} | $(fuzz-notmuch-select-threads)" 4 threads=$(eval "$threads_cmd") 5 fuzz-record-command "threads=\$($threads_cmd) && notmuch tag -inbox \$threads" 6 echo notmuch tag -inbox $threads