diff options
author | Luke Smith <luke@lukesmith.xyz> | 2021-09-23 13:31:07 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2021-09-23 13:31:07 -0400 |
commit | c88994e730a290e466565013e044bd0921fe6fbf (patch) | |
tree | 028b3709bfb11776cfab8e48bf2fc1ef05bbf13f /bin/mw | |
parent | e8458ace20a1e553df1c6249b9ef27234dd2aafd (diff) |
decrease gnuisms
Diffstat (limited to 'bin/mw')
-rwxr-xr-x | bin/mw | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -129,7 +129,7 @@ set ssl_force_tls = yes" pop) synccmd="macro index o \"<shell-escape>mpop $fulladdr<enter>\" \"run mpop to get $fulladdr's mail\"" folder="$maildir/$fulladdr" prepmpop ;; - *) synccmd="macro index o \"<shell-escape>mbsync $fulladdr<enter>\" \"run mbsync to sync $fulladdr\"" + *) synccmd="macro index o \"<shell-escape>mw -y $fulladdr<enter>\" \"run mbsync to sync $fulladdr\"" folder="$maildir/$fulladdr" prepmbsync ;; esac @@ -227,7 +227,7 @@ getboxes() { if [ -n "${force+x}" ] ; then mailboxes="$(echo "$info" | grep -v HasChildren | sed "s/.*\" //;s/\"//g" | tr -d '
')" fi [ "$type" = "pop" ] && mailboxes="INBOX" - getaccounts; for x in $(seq 1 9); do echo "$accounts" | grep -q "^$x:" || { export idnum="$x"; break ;}; done + getaccounts; for x in 1 2 3 4 5 6 7 8 9; do echo "$accounts" | grep -q "^$x:" || { export idnum="$x"; break ;}; done toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )" IFS=' ' |