diff options
author | intrigeri <intrigeri@boum.org> | 2020-04-21 13:26:07 +0200 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-05-01 11:31:26 -0700 |
commit | 5929201f46fa5b6661f5571453b69cbaf5e22b93 (patch) | |
tree | 587476507355e704a81f58c79ef6d49a5d02d92a /notmuch-slurp-debbug | |
parent | 6131b675e852077b65a588c636206ce0bf29ba27 (diff) | |
download | mailscripts-5929201f46fa5b6661f5571453b69cbaf5e22b93.tar.gz |
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 <intrigeri@boum.org>
Diffstat (limited to 'notmuch-slurp-debbug')
-rwxr-xr-x | notmuch-slurp-debbug | 3 |
1 files changed, 1 insertions, 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`); |