diff --git a/bin/mw b/bin/mw index 52c46cc..2ab0a68 100755 --- a/bin/mw +++ b/bin/mw @@ -229,7 +229,7 @@ getboxes() { if [ -n "${force+x}" ] ; then idnum=$((idnum + 1)) [ "$idnum" -eq "$x" ] || break done - toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )" + toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/;s/'/\\\'/g" | paste -sd ' ' - )" } finalize() { echo "$toappend" >> "$accdir/$fulladdr.muttrc"