{"id":13646877,"url":"https://github.com/zhsj/sasl-xoauth2","last_synced_at":"2025-04-21T21:31:41.905Z","repository":{"id":57503979,"uuid":"118799293","full_name":"zhsj/sasl-xoauth2","owner":"zhsj","description":"Use http://www.mutt.org/doc/manual/#oauth instead.","archived":true,"fork":false,"pushed_at":"2019-06-19T18:56:04.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-02T01:26:29.207Z","etag":null,"topics":["gmail","mutt","oauth"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhsj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-24T17:37:41.000Z","updated_at":"2023-01-28T16:16:59.000Z","dependencies_parsed_at":"2022-08-27T23:52:28.409Z","dependency_job_id":null,"html_url":"https://github.com/zhsj/sasl-xoauth2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhsj%2Fsasl-xoauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhsj%2Fsasl-xoauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhsj%2Fsasl-xoauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhsj%2Fsasl-xoauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhsj","download_url":"https://codeload.github.com/zhsj/sasl-xoauth2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223880315,"owners_count":17219100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gmail","mutt","oauth"],"created_at":"2024-08-02T01:03:12.640Z","updated_at":"2024-11-09T20:30:41.179Z","avatar_url":"https://github.com/zhsj.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# SASL XOAUTH2\n\n## Build\n\nGo https://console.developers.google.com/ (Credentials -\u003e Create credentials -\u003e OAuth client ID).\nThen obtain a pair of OAuth2 ID \u0026 secret.\n\nBuild dependency: `libsasl2-dev`.\n\n```\nmake build CLIENTID=YOUR_CLIENT_ID CLIENTSECRET=YOUR_CLIENT_SECRET\n```\n\n## Install\n\n```\nsudo make install\n```\n\n## Use\n\nUse [Mutt](http://www.mutt.org/) to login GMail IMAP/SMTP with\n[OAuth2](https://developers.google.com/gmail/imap/xoauth2-protocol).\n\nFirst run `./sasl-xoauth2` to obtain a token, then set it as a password in `muttrc`, like:\n\n```\nset folder      = \"imaps://imap.gmail.com/\"\n\nset imap_user   = \"example@gmail.com\"\nset imap_pass   = \"token\"\n\nset smtp_url = \"smtps://$imap_user:$imap_pass@smtp.gmail.com\"\n\n# set imap_authenticators=\"XOAUTH2\"\nset smtp_authenticators=\"XOAUTH2\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhsj%2Fsasl-xoauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhsj%2Fsasl-xoauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhsj%2Fsasl-xoauth2/lists"}