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