浏览代码
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 年前
committed by
GitHub
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改 ,包括
1 次插入 和
1 次删除
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"