> Something like: > > [credential "smtp://smtp.office365.com:587"] > username = someone@xxxxxxxxxxx > helper = "!f() { test \"$1\" = get && echo \"password=$(cd /workspaces/codespaces-blank/M365-IMAP && python3 ./refresh_token.py)\"; }; f" Interesting, and this works too!. I wasn't aware of this. Junio, I can drop the third patch if you want.