Skip to content

Add app password auth and fix IMAP envelope parsing#4

Merged
gumruyanzh merged 1 commit into
mainfrom
feat/app-password-auth
Feb 25, 2026
Merged

Add app password auth and fix IMAP envelope parsing#4
gumruyanzh merged 1 commit into
mainfrom
feat/app-password-auth

Conversation

@gumruyanzh

Copy link
Copy Markdown
Contributor

Summary

  • Add app password authentication as alternative to OAuth2 (--app-password flag)
  • Fix IMAP envelope parsing — go-imap v2 beta.8 returns value types, not pointers
  • IMAP uses LOGIN, SMTP uses PLAIN auth when using app passwords
  • Credentials stored securely in system keyring

Context

Yahoo no longer grants mail API permissions to new developer apps. App passwords work with standard IMAP/SMTP LOGIN and are the recommended auth method.

Test plan

  • yoy auth login --email gumruyan@yahoo.com --app-password <pw> — stores and verifies
  • yoy auth status — shows "Method: app password"
  • yoy mail list -n 10 — returns emails with full envelope data (subject, from, date, flags)

🤖 Generated with Claude Code

- Add app password authentication as alternative to OAuth2 XOAUTH2
  (Yahoo no longer grants mail API permissions to new developer apps)
- New flag: `yoy auth login --email user@yahoo.com --app-password <pw>`
- IMAP uses LOGIN command, SMTP uses PLAIN auth with app passwords
- Store credentials securely in system keyring with file fallback
- Fix go-imap v2 type assertions: FetchItemData types are values not
  pointers in beta.8, causing empty envelope/flags in message listings

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gumruyanzh gumruyanzh merged commit aa9da34 into main Feb 25, 2026
1 check passed
@gumruyanzh gumruyanzh deleted the feat/app-password-auth branch February 25, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant