makes proper mail dir before sync

This commit is contained in:
Luke Smith 2019-04-11 17:50:28 -04:00
parent f6c543536e
commit 23e250b82f
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

2
mw
View File

@ -239,7 +239,7 @@ trysync() { \
printf "\033[32mYou must have an internet connection to continue.\033[0m\\nmutt-wizard will run mbsync briefly to (1) ensure that login details are functional and (2) allow mbsync to tell us what mailboxes your email account has.\\nAfter around 15 seconds, mutt-wizard will kill the process and continue.\\nYou can run mbsync manually to finish the mail sync later.\\n" printf "\033[32mYou must have an internet connection to continue.\033[0m\\nmutt-wizard will run mbsync briefly to (1) ensure that login details are functional and (2) allow mbsync to tell us what mailboxes your email account has.\\nAfter around 15 seconds, mutt-wizard will kill the process and continue.\\nYou can run mbsync manually to finish the mail sync later.\\n"
cont cont
(sleep 15; killall mbsync)>/dev/null 2>&1 & (sleep 15; killall mbsync)>/dev/null 2>&1 &
mkdir -p "$maildir" mkdir -p "$maildir/$title"
mbsync "$title" mbsync "$title"
if ls -d "$maildir/$title/"* >/dev/null 2>&1; then if ls -d "$maildir/$title/"* >/dev/null 2>&1; then
printf "\033[32mSync successful.\033[0m\\n"; return printf "\033[32mSync successful.\033[0m\\n"; return