Skip to content

feat: mail accounts get_mailaccounts read module + CLI - #50

Merged
chmmou merged 1 commit into
mainfrom
feature/mail-accounts-read
May 8, 2026
Merged

feat: mail accounts get_mailaccounts read module + CLI#50
chmmou merged 1 commit into
mainfrom
feature/mail-accounts-read

Conversation

@chmmou

@chmmou chmmou commented May 8, 2026

Copy link
Copy Markdown
Owner

Summary

Adds internal/mailaccount and kasapi-cli mail accounts list|get, wrapping get_mailaccounts (list and singular via mail_login filter). First slice of #9.

KAS-API surface

Refs #9.

Add `internal/mailaccount` with typed `MailAccount` + `MailAccountList`,
`Client.List`/`Client.Get`, and the `kasapi-cli mail accounts list|get`
subcommand tree. The `get` variant reuses `get_mailaccounts` with a
`mail_login` filter and unwraps the single-entry result, mirroring the
existing domains/subdomains pattern. Tabular views: list for the
overview, key/value for the singular view to fit the wider field set
(xlist folders, 2FA, quota rule, webmail autologin). Mapping tests
run against the shipped `testdata/mailaccount/` fixtures. Refs #9.
@chmmou
chmmou merged commit 4ebe9f1 into main May 8, 2026
1 check passed
@chmmou
chmmou deleted the feature/mail-accounts-read branch May 8, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant