tarickb / sasl-xoauth2

SASL plugin for XOAUTH2
Other
72 stars 20 forks source link

Provide command that only prints the access token #81

Closed norbusan closed 5 months ago

norbusan commented 5 months ago

I would like to use the sasl-xoauth2-tool to get an (possibly updated) access token only printed to stdout, so that it can be used as PassCmd for mbsync.

norbusan commented 5 months ago

Actually this is not needed. The sasl-xoauth2 plugin from this repository expects the filename of the token. So putting

PassCmd "echo /path/to/token"

in the .mbsyncrc file makes it work!