Re: [PATCH] notmuch-mutt: fix Perl syntax of hash index lookups

Subject: Re: [PATCH] notmuch-mutt: fix Perl syntax of hash index lookups

Date: Thu, 12 Oct 2023 17:53:05 +0300

To: Paul Wise, notmuch@notmuchmail.org

Cc: Paul Wise

From: Tomi Ollila


On Thu, Oct 12 2023, Paul Wise wrote:

> Fixes: commit 239fdbbbf0cbd6cd6ebafb87e88cdb3cded75364
> ---
>  contrib/notmuch-mutt/notmuch-mutt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/contrib/notmuch-mutt/notmuch-mutt b/contrib/notmuch-mutt/notmuch-mutt
> index 1ac68065..b81252c8 100755
> --- a/contrib/notmuch-mutt/notmuch-mutt
> +++ b/contrib/notmuch-mutt/notmuch-mutt
> @@ -67,7 +67,7 @@ sub check_search_cache_maildir($) {
>      foreach my $d (@contents) {
>          -l "$maildir/$d" and die_dir( $maildir, "contains symlink $d");
>          -d "$maildir/$d" or die_dir( $maildir, "contains non-directory $d");
> -        exists($required[$d]) or die_dir( $maildir, "contains directory $d");
> +        exists($required{$d}) or die_dir( $maildir, "contains directory $d");

LGTM. (for sure that is hash referenced)

Tomi
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: