summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-11 17:50:28 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-11 17:50:28 -0400
commit23e250b82f1f158e05d51fb51156e0863ce0ebb1 (patch)
tree2c79699ee2bf7f9b94cd1b7c2bf8424aced8227a
parentf6c543536e5d8013961bac954e5dd8198a320317 (diff)
makes proper mail dir before sync
-rwxr-xr-xmw2
1 files changed, 1 insertions, 1 deletions
diff --git a/mw b/mw
index 7a791d4..ef9b6c5 100755
--- a/mw
+++ b/mw
@@ -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"
cont
(sleep 15; killall mbsync)>/dev/null 2>&1 &
- mkdir -p "$maildir"
+ mkdir -p "$maildir/$title"
mbsync "$title"
if ls -d "$maildir/$title/"* >/dev/null 2>&1; then
printf "\033[32mSync successful.\033[0m\\n"; return