accept inbox

This commit is contained in:
bel
2026-02-24 00:00:46 -07:00
parent 1b74eb0d16
commit 8e40f85166
2 changed files with 5 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ func main() {
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)
as.Append(args.STRING, "inbox", "", emailer.Inbox)
if err := as.Parse(); err != nil {
panic(err)
}
@@ -35,6 +36,7 @@ func main() {
emailer.From = as.GetString("u")
emailer.Password = as.GetString("p")
emailer.OAuth = as.GetString("oauth")
emailer.Inbox = as.GetString("inbox")
var msgs <-chan *mail.Message
var err error