# lieer and gmi I want to sync some gmail accounts to notmuch. That's always been such a pain, but lieer apparently solves some of it. I used Gemini to walk me through the setup. It was painful. In the end, I had to run with BROWSER=false in my env, then paste the URL that `gmi init` spit out, paste that into the Edge browser (Firefox was no good, maybe because of my plugins or security settings) and do the flow that way. It did finally work. Although the binary is `gmi`, the Debian package is `lieer`. The config is in [my dotfiles](https://code.librehq.com/james/dotfiles). Some notes: * Gemini recommended I configure the API access as a Desktop App, then when that didn't work it suggested Web App. Desktop App was fine. The Web App recommendation was a blind alley. * Publishing the app got me all kinds of warnings about verification that I ignored and all is well. * I allowed these three scopes and only these three, which I had to paste into the manual entry box: * https://www.googleapis.com/auth/gmail.readonly * https://www.googleapis.com/auth/gmail.labels * https://www.googleapis.com/auth/gmail.modify * It is hard to find the menus the AI pointed me at. It got easier when I realized I could click the hamburger menu in the upper left, scroll all the way down and click "View All Products". From there, I could ctrl-f. That usually got me to the right place. * I needed to do this for my Google Workspace account too. That got easier when I flipped the user audience from external to internal.