How lemourin/migadu-alps works
ALPS is an extensible webmail that provides a browser SPA over an existing IMAP server and uses SMTP for outgoing mail. The primary workflow is a user accessing the webmail, working with mailbox and message features, and relying on the backend to communicate with mail services. The repository also documents WebAuthn, contacts and calendars, plugins, and TLS. Several backend and plugin implementations are unsampled, so their internal call paths are not asserted here; dashed links mark documented but unverified integration points.
Main entry points: main.ts Webmail interface · plugin.go Plugin system · main.go Application startup · routes.go Mail and account routes
Components 24
Webmail application
- Webmail interface
frontend/src/main.ts - Mailbox views
frontend/src/pages/mailbox-page.ts - Settings UI
frontend/src/pages/settings-page.ts - Login and WebAuthn
frontend/src/pages/login-webauthn-page.ts
Mail access
- Mail and account routes
plugins/base/routes.go - Provider interface
provider/types.go - IMAP provider
provider/imap/provider.go - Maildir provider
provider/maildir/provider.go - SMTP delivery
smtp.go
Extensions
- Calendar extension
plugins/caldav/routes.go - Calendar interface
plugins/caldav/frontend/calendar-service.ts - Contacts extension
plugins/carddav/routes.go - Contacts interface
plugins/carddav/frontend/contacts-service.ts - GPG extension
plugins/gpg/routes.go - ManageSieve extension
plugins/managesieve/routes.go - Sieve interface
plugins/managesieve/frontend/managesieve-service.ts - Plugin system
plugin.go
Runtime platform
- HTTP server
server.go - Application startup
cmd/alps/main.go - TLS management
tlsmanager/manager.go - Cluster coordination
cluster/cluster.go
Other components
- User
- IMAP server
- SMTP server
Connections 22
- User → Webmail interface: uses
README.md - Webmail interface → Mailbox views: renders
- Webmail interface → Settings UI: renders
- Webmail interface → Login and WebAuthn: renders
- Webmail interface → HTTP server: calls
- HTTP server → Mail and account routes: dispatches
- Mail and account routes → Provider interface: uses
plugins/base/routes.go - Provider interface → IMAP provider: implemented by
- Provider interface → Maildir provider: implemented by
- Mail and account routes → SMTP delivery: sends mail
- IMAP provider → IMAP server: accesses
README.md - SMTP delivery → SMTP server: delivers to
README.md - Plugin system → Calendar extension: registers
- Plugin system → Contacts extension: registers
- Plugin system → GPG extension: registers
- Plugin system → ManageSieve extension: registers
- Calendar interface → Calendar extension: requests
plugins/caldav/frontend/calendar-service.ts - Contacts interface → Contacts extension: requests
plugins/carddav/frontend/contacts-service.ts - Sieve interface → ManageSieve extension: requests
plugins/managesieve/frontend/managesieve-service.ts - Application startup → TLS management: configures
cmd/alps/main.go - Application startup → Cluster coordination: initializes
cmd/alps/main.go - Application startup → HTTP server: starts