summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-02-05 12:29:06 -0500
committerLuke Smith <luke@lukesmith.xyz>2021-02-05 12:29:06 -0500
commita95ff5a471a991ba3acfc5995141fef85a37209a (patch)
tree937943938a83db0ddec5d61c8edd3379ced8e84a /bin
parent06ec18b8a6d624f3b342fe5173d1ca5a48bea7ab (diff)
no longer flatten mailboxes at all, fix #648
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mw3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/mw b/bin/mw
index 03abc4d..e8d02f1 100755
--- a/bin/mw
+++ b/bin/mw
@@ -62,7 +62,6 @@ MaildirStore $fulladdr-local
Subfolders Verbatim
Path ${XDG_DATA_HOME:-$HOME/.local/share}/mail/$fulladdr/
Inbox ${XDG_DATA_HOME:-$HOME/.local/share}/mail/$fulladdr/${inbox:-INBOX}
-Flatten _
Channel $fulladdr
Expunge Both
@@ -231,7 +230,7 @@ getboxes() { if [ -n "${force+x}" ]; then
else
info="$(curl --location-trusted -s -m 5 --user "$login:$(pass $fulladdr)" --url "${protocol:-imaps}://$imap:${iport:-993}")"
[ -z "$info" ] && echo "Log-on not successful." && return 1
- mailboxes="$(echo "$info" | sed "s/.*\" //;s/\"//g" | tr -d ' ')"
+ mailboxes="$(echo "$info" | grep -v HasChildren | sed "s/.*\" //;s/\"//g" | tr -d ' ')"
fi
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 ' ' - )"