X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=contrib%2Fnotmuch-mutt%2Fnotmuch-mutt;fp=contrib%2Fnotmuch-mutt%2Fnotmuch-mutt;h=01db6908702293b19435548076abdd297f90f973;hp=b38258f5772a7808889e5f1c1c9cd0ea61c76187;hb=93d936c5ae2c694d7fcc310503a182b6bbd603ee;hpb=6d383d404982c6e12dd68dcdf94b3490e3de4645 diff --git a/contrib/notmuch-mutt/notmuch-mutt b/contrib/notmuch-mutt/notmuch-mutt index b38258f5..01db6908 100755 --- a/contrib/notmuch-mutt/notmuch-mutt +++ b/contrib/notmuch-mutt/notmuch-mutt @@ -17,7 +17,6 @@ use Getopt::Long qw(:config no_getopt_compat); use Mail::Header; use Mail::Box::Maildir; use Pod::Usage; -use String::ShellQuote; use Term::ReadLine; use Digest::SHA; @@ -126,13 +125,9 @@ sub thread_action($$@) { } $mid =~ s/ //g; # notmuch strips spaces before storing Message-Id - $mid =~ s/"/""/g; # escape all double quote characters - - my $search_cmd = 'notmuch search --output=threads ' . shell_quote(qq{id:"$mid"}); - my $tid = `$search_cmd`; # get thread id - chomp($tid); + $mid =~ s/"/""""/g; # escape all double quote characters twice - search($results_dir, $remove_dups, $tid); + search($results_dir, $remove_dups, qq{thread:"{id:""$mid""}"}); } sub tag_action(@) {