Draft
Conversation
Agent-Logs-Url: https://github.com/Kritarth-Dandapat/super-ollama/sessions/e08ab9f9-16ea-4242-b398-db9eef4ba004 Co-authored-by: Kritarth-Dandapat <141005022+Kritarth-Dandapat@users.noreply.github.com>
… sanitization) Agent-Logs-Url: https://github.com/Kritarth-Dandapat/super-ollama/sessions/e08ab9f9-16ea-4242-b398-db9eef4ba004 Co-authored-by: Kritarth-Dandapat <141005022+Kritarth-Dandapat@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add email assistant with IMAP and SMTP functionality
Phase 4: email assistant (IMAP/SMTP)
Apr 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the email assistant module (
super-ollama email ...) with full IMAP/SMTP integration, AI-assisted composition, and local draft persistence.internal/mailpackageconfig.go— Loads~/.super-ollama/mail.toml(host/port/username only). Passwords stored exclusively in the OS keyring viazalando/go-keyringunder"super-ollama-mail". Exposes loaders forprofile.md,prompts/email.md, and per-contact notes. Contact filenames use alphanumeric-only slugs to prevent path traversal.imap.go—ListMessages(headers-only, optional unread filter) andReadMessage(full body by UID) viago-imapv1. Supports implicit TLS (port 993) and STARTTLS. TLS 1.2 minimum enforced.body.go— RFC-2822 body extraction: plain text,multipart/alternative, quoted-printable.smtp.go— Send via stdlibnet/smtp; handles STARTTLS (587) and implicit TLS (465). TLS 1.2 minimum enforced.store.go— SQLite (mail.db) withemailsanddraftstables. Pragmas applied viaExecrather than DSN string concatenation.prompt.go— Assembles LLM prompts from system prompt + user profile + contact notes + tone flag. Tone flags:formal/casual/brief.CLI subcommands (
cmd/super-ollama/email.go)Replaces the existing stub with a real parent command and seven sub-commands:
Dependencies added
github.com/emersion/go-imapv1,go-smtpv0.21.3,go-messagev0.18.1,go-sasl,github.com/zalando/go-keyringv0.2.5