Skip to content

Restructure into workspace crates with full IMAP implementation#4

Merged
WeekendSuperhero merged 2 commits intomainfrom
weekendsuperhero/clean_up_port
Mar 26, 2026
Merged

Restructure into workspace crates with full IMAP implementation#4
WeekendSuperhero merged 2 commits intomainfrom
weekendsuperhero/clean_up_port

Conversation

@WeekendSuperhero
Copy link
Copy Markdown
Contributor

@WeekendSuperhero WeekendSuperhero commented Mar 26, 2026

Summary

This PR restructures the codebase into a proper Rust workspace with separate crates for the library and MCP server.

Changes

  • Workspace structure: Split into agentmail (library) and agentmail-mcp (binary) crates
  • IMAP client: Complete implementation with connection pooling (3 sessions/account)
  • MCP server: 21 tools and 6 prompts for AI assistant email integration
  • Multi-provider support: Gmail, iCloud, Outlook, Yahoo, Fastmail with sensible defaults
  • Credential resolution: Password lookup via env vars → config → OS keyring
  • Cross-platform: Pure IMAP over TLS, no Mail.app dependency

Technical Details

  • Connection pool with semaphore-based concurrency control
  • BODY.PEEK throughout (read operations have no side effects)
  • HTML to Markdown conversion for LLM-friendly content
  • Progress notifications for long-running operations

@WeekendSuperhero WeekendSuperhero changed the title changed structure of code Restructure into workspace crates with full IMAP implementation Mar 26, 2026
@WeekendSuperhero WeekendSuperhero merged commit fe53cd1 into main Mar 26, 2026
4 checks passed
@WeekendSuperhero WeekendSuperhero deleted the weekendsuperhero/clean_up_port branch March 26, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant