From: martin f. krafft Date: Fri, 1 Nov 2019 07:41:24 +0000 (+1300) Subject: use mutt -Q to query config X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/f52c41fd7253335fa0251236b739ea36b9259cac use mutt -Q to query config --- 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;;