]> git.madduck.net Git - etc/mutt.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix scanning of conf vars
authormartin f. krafft <madduck@madduck.net>
Fri, 11 Apr 2025 06:41:26 +0000 (08:41 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 11 Apr 2025 06:41:26 +0000 (08:41 +0200)
.config/mutt/htmldump

index 53b3a2e3dc02bd628dd6b1aa24ab1b679dfeaf9b..503c235704aea210e2574b9d209e414eb0d2f45c 100755 (executable)
@@ -2,7 +2,7 @@
 
 get_mutt_confvar() {
   local ret;
 
 get_mutt_confvar() {
   local ret;
-  ret=$(mutt -Q "$1" | sed -rne "s,\S+(=| is ),,p")
+  ret=$(mutt -Q "$1" | sed -rne "s,^(set )?\S+\s*(=|is)\s*,,p")
   case "$ret" in
     (set) echo return 0;;
     (unset) echo return 1;;
   case "$ret" in
     (set) echo return 0;;
     (unset) echo return 1;;