summaryrefslogtreecommitdiff
path: root/notmuch-slurp-debbug
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-03-19 22:38:17 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-03-19 22:40:49 -0700
commit620e57852b9d9ffc8ea071e0c89231ba23259a76 (patch)
treeb734f3ae3ced761278e24d5406911985a95c30cf /notmuch-slurp-debbug
parent61d1ba43f6c999dcd816a0fffaea5ac50f4df50a (diff)
downloadmailscripts-620e57852b9d9ffc8ea071e0c89231ba23259a76.tar.gz
notmuch-slurp-debbug: support tilde expansion in config file
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'notmuch-slurp-debbug')
-rwxr-xr-xnotmuch-slurp-debbug2
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-slurp-debbug b/notmuch-slurp-debbug
index 0130470..f5ae3fc 100755
--- a/notmuch-slurp-debbug
+++ b/notmuch-slurp-debbug
@@ -43,7 +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) {
- $maildir = Config::Tiny->new->read($conf_f)->{_}->{maildir};
+ $maildir = glob 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`);