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

2023-10-12 Thread David Bremner
Paul Wise  writes:

> 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");
>  }
>  }
>  
> -- 
> 2.42.0
>
> ___
> notmuch mailing list -- [email protected]
> To unsubscribe send an email to [email protected]

applied to release and master (will be part of 0.38.1)

d
___
notmuch mailing list -- [email protected]
To unsubscribe send an email to [email protected]


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

2023-10-12 Thread 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 -- [email protected]
To unsubscribe send an email to [email protected]


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

2023-10-12 Thread Paul Wise
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");
 }
 }
 
-- 
2.42.0

___
notmuch mailing list -- [email protected]
To unsubscribe send an email to [email protected]