From 5929201f46fa5b6661f5571453b69cbaf5e22b93 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 21 Apr 2020 13:26:07 +0200 Subject: notmuch-slurp-debbug: Fix ability to read configuration file Config::Tiny::read is a method meant to take two arguments, the second one being the configuration file name. Fixes regression introduced in f3a9d113fd89db152db9cd2f061fc8f7367f0fc9. Signed-off-by: intrigeri --- notmuch-slurp-debbug | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/notmuch-slurp-debbug b/notmuch-slurp-debbug index c187596..ad0db47 100755 --- a/notmuch-slurp-debbug +++ b/notmuch-slurp-debbug @@ -43,8 +43,7 @@ my $maildir; my $conf_r = $ENV{XDG_CONFIG_HOME} || catfile $ENV{HOME}, ".config"; my $conf_f = catfile $conf_r, "mailscripts", "notmuch-slurp-debbug"; if (-f $conf_f) { - my $Config = Config::Tiny::read($conf_f); - $maildir = $Config->{_}->{maildir}; + $maildir = Config::Tiny->new->read($conf_f)->{_}->{maildir}; } else { # default to where a lot of people have their inbox chomp(my $database_path = `notmuch config get database.path`); -- cgit v1.2.3