diff options
author | Luke Smith <luke@lukesmith.xyz> | 2021-08-07 09:43:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 09:43:14 -0400 |
commit | fdba98af8db56bf5f2524e28609a88b4f30ebd6b (patch) | |
tree | 5d3955e65bf8a257a515a567d98d9d03ad3dd0e2 /bin | |
parent | 653cb74519257b2f88e2e443b138093db54f650b (diff) | |
parent | 99c0466a3495a6b064b84ed47f15919f10650ee2 (diff) |
Merge pull request #750 from ask1234560/master
Arguments getting splitted by space
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mw | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -228,6 +228,7 @@ getboxes() { if [ -n "${force+x}" ] ; then [ "$type" = "pop" ] && mailboxes="INBOX" getaccounts; for x in $(seq 1 9); do echo "$accounts" | grep -q "^$x:" || { export idnum="$x"; break ;}; done toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )" + IFS=$'\n' for x in $mailboxes; do case "$x" in *[Ss][Ee][Nn][Tt]*) setBox record "$x"; formatShortcut s sent "$x" ;; @@ -239,6 +240,7 @@ getboxes() { if [ -n "${force+x}" ] ; then *[Ii][Nn][Bb][Oo][Xx]) formatShortcut i inbox "$x"; setBox spoolfile "$x" inbox="$x" ;; esac done + unset IFS } finalize() { echo "$toappend" >> "$accdir/$idnum-$fulladdr.muttrc" |