Browse Source

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.
pull/771/head
PRESFIL 3 years ago
committed by GitHub
parent
commit
6c74c9e095
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw View File

@@ -226,7 +226,7 @@ getboxes() { if [ -n "${force+x}" ] ; then
idnum=$((idnum + 1)) idnum=$((idnum + 1))
[ $idnum -eq $x ] || break [ $idnum -eq $x ] || break
done 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" finalize() { echo "$toappend" >> "$accdir/$fulladdr.muttrc"


Loading…
Cancel
Save