1 2 3 4 5
if [ "$1" = "-s" ]; then mbsync -aV &>> /tmp/mbsync.log && notmuch new &>> /tmp/notmuch.log else mbsync -a && notmuch new fi