feat(mail): mailaccount write endpoints — add / update / delete - #187
Merged
Conversation
Wire add_mailaccount / update_mailaccount / delete_mailaccount through the shared kaswrite seam. update and delete are gated by the #109 confirmation prompt; add is reversible and not prompted. All three honour --dry-run and emit a #131 audit record with the password redacted. add splits the address into local_part/domain_part and takes no mail_login (KAS generates it, echoed in ReturnInfo). The password key splits between actions: --password maps to mail_password on add and mail_new_password on update. delete_mailaccount uses the louder "permanently delete" verb (drops the mailbox and all messages), shared with delete_database. Read fixtures were refreshed to real responses; the read mapping tests were realigned (empty mailbox => used_mailaccount_space 0). Closes #114
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wires `add_mailaccount` / `update_mailaccount` / `delete_mailaccount` through the shared `kaswrite` seam as the next #13 write slice.
Closes #114