From f52c41fd7253335fa0251236b739ea36b9259cac Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 1 Nov 2019 20:41:24 +1300 Subject: [PATCH 1/1] use mutt -Q to query config --- .mutt/htmldump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mutt/htmldump b/.mutt/htmldump index f5718e8..c15ecd1 100755 --- a/.mutt/htmldump +++ b/.mutt/htmldump @@ -2,7 +2,7 @@ get_mutt_confvar() { local ret; - ret=$(mutt -D | sed -rne "s,^${1}(=| is ),,p") + ret=$(mutt -Q "$1" | sed -rne "s,\S+(=| is ),,p") case "$ret" in (set) echo return 0;; (unset) echo return 1;; -- 2.39.5