How tijn/devmail works
Main Components
a) Core Server Components:
• SMTP Server (receives emails)
• POP3 Server (delivers emails)
• In-Memory Store (temporary email storage)
b) Supporting Components:
• Configuration System
• Logging System
• Session Management
[Client Layer]
[Server Layer]
[Storage Layer]
Specific Component Relationships
a) Client Layer:
• Developer Applications (SMTP clients)
• Email Clients (POP3 clients like Thunderbird)
b) Server Layer:
• SMTP Server (src/devmail/smtp_server.cr)
• POP Server (src/devmail/pop_server.cr)
• Generic Server Base (src/devmail/generic_server.cr)
• Session Management
• SMTP Sessions (src/devmail/smtp_session.cr)
• POP Sessions (src/devmail/pop_session.cr)
c) Storage Layer:
• In-Memory Store (src/devmail/store.cr)
Flow Representation
• Incoming mail flow: Client Apps → SMTP Server → Store
• Outgoing mail flow: Store → POP3 Server → Email Clients
• Session management flows
• Configuration and logging interactions
Additional Elements
Annotations for:
• Port numbers for SMTP and POP3
• Temporary nature of storage
• System startup methods (launchd/systemd)
Key Points to Emphasize
• The ephemeral nature of the storage (in-memory only)
• The development/testing purpose of the system
• The simple flow of emails (SMTP → Store → POP3)