From 6c74c9e09531e6a2550d28d8a3ba9577e29f2c8d Mon Sep 17 00:00:00 2001 From: PRESFIL Date: Tue, 5 Oct 2021 18:51:37 +0300 Subject: [PATCH] Fix: remove extra `\` from dynamic mailboxes Remove extra escaping from `mutt`'s mailboxes dynamic generator. Apparently, backslash expansion inside the backticks context (`\`shell-command\``) is not performed. Fixes #769. --- bin/mw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mw b/bin/mw index 16df7d3..2cf6458 100755 --- a/bin/mw +++ b/bin/mw @@ -226,7 +226,7 @@ getboxes() { if [ -n "${force+x}" ] ; then idnum=$((idnum + 1)) [ $idnum -eq $x ] || break done - toappend="mailboxes \`mdir=$maildir/$fulladdr/; find \$mdir -mindepth 1 -type d -name cur | sed -e 's:/cur\$:\":' -e \"s:\$mdir:\\\"=:\" | sort | tr '\\\n' ' '\`" + toappend="mailboxes \`mdir=$maildir/$fulladdr/; find \$mdir -mindepth 1 -type d -name cur | sed -e 's:/cur\$:\":' -e \"s:\$mdir:\\\"=:\" | sort | tr '\\n' ' '\`" } finalize() { echo "$toappend" >> "$accdir/$fulladdr.muttrc"