quotes added for multi-word mailbox names
This commit is contained in:
parent
2c05667dee
commit
6aa267c867
@ -48,7 +48,7 @@ detectMailboxes() { \
|
|||||||
find ~/.mail/$1 -maxdepth 1 -mindepth 1 -type d | sed -e "s/.*\///g;s/^/=/g" > /tmp/$1_boxes
|
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}')
|
sidebar_width=$(sed -n -e '/^set sidebar_width/p' "$muttdir"/muttrc | awk -F'=' '{print $2}')
|
||||||
delim=$(gen_delim $sidebar_width)
|
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"
|
oneline="=$1 $delim $oneline"
|
||||||
sed -i "/^mailboxes\|^set spoolfile\|^set record\|^set postponed/d" "$muttdir"accounts/$1.muttrc
|
sed -i "/^mailboxes\|^set spoolfile\|^set record\|^set postponed/d" "$muttdir"accounts/$1.muttrc
|
||||||
echo mailboxes $oneline >> "$muttdir"accounts/$1.muttrc
|
echo mailboxes $oneline >> "$muttdir"accounts/$1.muttrc
|
||||||
|
Loading…
Reference in New Issue
Block a user