I tried using a combo of mbsync, notmuch, and notmuch-emacs to start migrating away from Gmail's UI (and eventually moving away from their service).
I found, though, that mbsync failed to download updates after the initial bulk load.
Has anyone else run into this, and/or found a good way to use notmuch with gmail?