X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fnotmuch-mutt%2Fnotmuch-mutt;h=97fb2d85160cb9a495de68c31103671beeae3fc0;hb=9e6017b8b48db2268e7fc772c6009935838cc7e4;hp=126cbf4444da0cf0585b3aceb696075fab57d18e;hpb=1722ea2c95865cb20cc2578894eca2cdaddc1d7a;p=notmuch diff --git a/contrib/notmuch-mutt/notmuch-mutt b/contrib/notmuch-mutt/notmuch-mutt index 126cbf44..97fb2d85 100755 --- a/contrib/notmuch-mutt/notmuch-mutt +++ b/contrib/notmuch-mutt/notmuch-mutt @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # # notmuch-mutt - notmuch (of a) helper for Mutt # @@ -50,7 +50,7 @@ sub search($$$) { empty_maildir($maildir); system("notmuch search --output=files $dup_option $query" . " | sed -e 's: :\\\\ :g'" - . " | xargs --no-run-if-empty ln -s -t $maildir/cur/"); + . " | xargs -r -I searchoutput ln -s searchoutput $maildir/cur/"); } sub prompt($$) {