-
Notifications
You must be signed in to change notification settings - Fork 92
IMAP: support password via environment variable for CI/Docker #197
Copy link
Copy link
Open
Description
Context
The add-imap command added in #193 only accepts passwords via interactive term.ReadPassword() prompt. This blocks headless/automated use cases like Docker containers and CI pipelines.
Proposal
Support an environment variable (e.g. MSGVAULT_IMAP_PASSWORD) as a fallback when stdin is not a terminal. Print a security warning when the env var path is used, recommending the interactive prompt for human users.
# Docker / CI usage
MSGVAULT_IMAP_PASSWORD="app-password-here" msgvault add-imap --host imap.mail.yahoo.com --username [email protected]The password should never be accepted via CLI flag (visible in shell history and ps output).
References
- Yahoo Mail PRD: Design for Yahoo Mail integration #93
- IMAP support: Add IMAP account support via go-imap/v2 #193
- Related: NAS/Docker Deployment: CI/CD, Headless OAuth Docs, Setup Guide #116 (NAS/Docker deployment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels