summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorananthu <ask1234560@gmail.com>2021-08-07 14:14:15 +0530
committerananthu <ask1234560@gmail.com>2021-08-07 14:14:15 +0530
commit8e5bb8bd095aaf9cb42997c243c4d4dc47f588a9 (patch)
tree9fe847198b902ea59b99b47ffc85d942d69cc6d2
parent653cb74519257b2f88e2e443b138093db54f650b (diff)
bug; argument getting splitted by space
-rwxr-xr-xbin/mw2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/mw b/bin/mw
index 0fd01d8..2e38cde 100755
--- a/bin/mw
+++ b/bin/mw
@@ -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"