summaryrefslogtreecommitdiff
path: root/mutt-wizard.sh
diff options
context:
space:
mode:
authorLuke <luke@lukesmith.xyz>2018-02-27 10:52:18 -0700
committerLuke <luke@lukesmith.xyz>2018-02-27 10:52:18 -0700
commit6aa267c867d9213d4d3be667802dce4e4c65069c (patch)
tree748f12574bec8ad43947dde4e08d7eab1d908feb /mutt-wizard.sh
parent2c05667deefc19b35ace65dbab14eee7e9ba9cbb (diff)
quotes added for multi-word mailbox names
Diffstat (limited to 'mutt-wizard.sh')
-rwxr-xr-xmutt-wizard.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutt-wizard.sh b/mutt-wizard.sh
index b48343d..4946775 100755
--- a/mutt-wizard.sh
+++ b/mutt-wizard.sh
@@ -48,7 +48,7 @@ detectMailboxes() { \
find ~/.mail/$1 -maxdepth 1 -mindepth 1 -type d | sed -e "s/.*\///g;s/^/=/g" > /tmp/$1_boxes
sidebar_width=$(sed -n -e '/^set sidebar_width/p' "$muttdir"/muttrc | awk -F'=' '{print $2}')
delim=$(gen_delim $sidebar_width)
- oneline=$(cat /tmp/$1_boxes | tr "\n" " ")
+ oneline=$(cat /tmp/$1_boxes | sed -e "s/^\|$/\"/g" | tr "\n" " ")
oneline="=$1 $delim $oneline"
sed -i "/^mailboxes\|^set spoolfile\|^set record\|^set postponed/d" "$muttdir"accounts/$1.muttrc
echo mailboxes $oneline >> "$muttdir"accounts/$1.muttrc