Skip to content

feat: add mail lists get subcommand - #70

Merged
chmmou merged 1 commit into
mainfrom
feature/mail-lists-get
May 9, 2026
Merged

feat: add mail lists get subcommand#70
chmmou merged 1 commit into
mainfrom
feature/mail-lists-get

Conversation

@chmmou

@chmmou chmmou commented May 9, 2026

Copy link
Copy Markdown
Owner

Summary

Adds the singular kasapi-cli mail lists get <name> variant: the KAS
get_mailinglists endpoint accepts an optional mailinglist_name
filter, the response is still array-shaped, and Client.Get unwraps
the single-entry result (empty array → not-found), mirroring
mailforward.Client.Get.

Live-verified against the production KAS endpoint with both an empty
account (server returns [] → typed not-found) and a real list
(olbaflinx-chm-projects-de).

Closes #9.

Wires get_mailinglists with a mailinglist_name filter into the
mailinglist module and exposes it as `kasapi-cli mail lists get
<name>`, rounding out the read surface tracked by #9. The KAS
endpoint still wraps the singular result in an array; Client.Get
unwraps it and surfaces an empty result as a not-found error,
mirroring mailforward.Client.Get.

Closes #9.
@chmmou
chmmou merged commit ed25098 into main May 9, 2026
1 check passed
@chmmou
chmmou deleted the feature/mail-lists-get branch May 9, 2026 02:16
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.

Read modules: mail

1 participant