can oauth

This commit is contained in:
bel
2026-02-23 22:59:40 -07:00
parent 14036702ee
commit 5a4ce70451
6 changed files with 108 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ func main() {
as.Append(args.STRING, "p", "password", emailer.Password)
as.Append(args.INT, "b", "dont read more than this many characters", 4096)
as.Append(args.BOOL, "json", "output as json", false)
as.Append(args.STRING, "oauth", "", emailer.OAuth)
if err := as.Parse(); err != nil {
panic(err)
}
@@ -33,6 +34,7 @@ func main() {
emailer.Limit = as.Get("n").GetInt()
emailer.From = as.GetString("u")
emailer.Password = as.GetString("p")
emailer.OAuth = as.GetString("oauth")
var msgs <-chan *mail.Message
var err error