Hi Sean,

Sean Whitton (2020-04-22):
> Thank you for the patch.  So that it can be included upstream, however,
> can you add a Signed-off-by: to confirm the contents of
> DEVELOPER-CERTIFICATE?

Sure. I'm attaching an updated (git format-)patch.

>From 6dfe1f6adc1245f19987b27d92d60a86a2cc52cd Mon Sep 17 00:00:00 2001
From: intrigeri <[email protected]>
Date: Tue, 21 Apr 2020 13:26:07 +0200
Subject: [PATCH] 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 <[email protected]>
---
 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`);
-- 
2.26.2

Reply via email to