diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2019-05-20 13:44:51 -0400 | 
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2019-05-20 13:44:51 -0400 | 
| commit | e4794af679e0d79b222930d034e98ca7116c8ccd (patch) | |
| tree | 3b6036788362637f959f2331c831e5c991f369f8 | |
| parent | a6c81625c8ed887b7ddbfed005d2a2ffdf27a503 (diff) | |
escape spaces in mailboxes
| -rwxr-xr-x | bin/mw | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -216,7 +216,7 @@ tryconnect() { mkdir -p "$maildir/$title"  	fi ;}  finalize() { \ -	boxes="$(find "$maildir/$title/" -mindepth 1 -maxdepth 1 | sed "s/^.*\//=/")" +	boxes="$(find "$maildir/$title/" -mindepth 1 -maxdepth 1 | sed "s/\ /\\\ /g;s/^.*\//=/")"  	[ -z "$boxes" ] && printf "\033[31mNo local mailboxes have been detected for %s.\033[0m\\nThis means that mbsync has not been successfully run.\\nRun mbsync, and if it has an error, be sure to check your password and server settings manually if needbe.\\n" "$title" && return  	printf "Setting default mailboxes for your Inbox, Sent, Drafts and Trash in mutt...\\n"  	spoolfile=$(echo "$boxes" | grep -i -m 1 inbox | sed 's/=/+/g') | 
