summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-11-01 14:14:45 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-11-01 14:14:45 -0400
commit29f264db233764a6963bce761b444091b603e114 (patch)
tree9e24d2f1c7e7c87c5afc7847906d138414da55f8
parent85c5d01dcd09058094a8a180c38751e88416b1f4 (diff)
Revert "allow dynamically loading available mailboxes"
This reverts commit 2cb2fa03452cb99537a1751961574a0b6d3253e0.
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index 5205a13..d3129e7 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 $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )"
}
finalize() { echo "$toappend" >> "$accdir/$fulladdr.muttrc"