diff options
author | Aisha Tammy <floss@bsd.ac> | 2021-05-19 18:57:43 -0400 |
---|---|---|
committer | Aisha Tammy <floss@bsd.ac> | 2021-05-19 18:57:43 -0400 |
commit | 2a50561834c23565bd5587972dff5cc9de53dd57 (patch) | |
tree | e4f24fd9ff10d8f7d25e1e02f2bcf2a5545199bc /bin | |
parent | 2cb2fa03452cb99537a1751961574a0b6d3253e0 (diff) |
set mindepth to 1 and move sort to after sed
Signed-off-by: Aisha Tammy <floss@bsd.ac>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -227,7 +227,7 @@ getboxes() { if [ -n "${force+x}" ] ; then fi [ "$type" = "pop" ] && mailboxes="INBOX" getaccounts; for x in $(seq 1 9); do echo "$accounts" | grep -q "^$x:" || { export idnum="$x"; break ;}; done - toappend="mailboxes \`mdir=$maildir/$fulladdr/; find \$mdir -type d -name cur | sort | sed -e 's:/cur\$:\":' -e \"s:\$mdir:\\\"=:\" | tr '\\\n' ' '\`" + toappend="mailboxes \`mdir=$maildir/$fulladdr/; find \$mdir -mindepth 1 -type d -name cur | sed -e 's:/cur\$:\":' -e \"s:\$mdir:\\\"=:\" | sort | tr '\\\n' ' '\`" for x in $mailboxes; do case "$x" in *[Ss][Ee][Nn][Tt]*) setBox record "$x"; formatShortcut s sent "$x" ;; |