#!/bin/sh

# Add the Mail directory if it doesn't already exist.
# Make sure Drafts are included.
mkdir -p ~/Mail/Drafts/cur ~/Mail/Drafts/new ~/Mail/Drafts/tmp

# Sync mail from IMAP.
/usr/local/bin/mbsync chris

# Do indexing.
/usr/local/bin/mu index --maildir=~/Mail --lazy-check

#!/bin/sh

# Add the Mail directory if it doesn't already exist.
# Make sure Drafts are included.
mkdir -p ~/Mail/Drafts/cur ~/Mail/Drafts/new ~/Mail/Drafts/tmp

# Sync mail from IMAP.
/usr/local/bin/mbsync chris

# Do indexing.
/usr/local/bin/mu index --lazy-check

Remove maildir from mu index
Remove maildir from mu index

mu now remembers the maildir from the init command. Remove it from the index command to remove the warning message.
