diff --git a/README.md b/README.md index aff375a..2c43515 100644 --- a/README.md +++ b/README.md @@ -42,12 +42,13 @@ mcc.mailbox.get().then((e) => { - [x] Update mailbox ACL - [x] Get mailboxes - [x] Edit mailbox spam filter score +- [x] Get Active User Sieve ### Aliases -- [ ] Create alias -- [ ] Delete alias -- [ ] Update alias -- [ ] Get aliases +- [x] Create alias +- [x] Delete alias +- [x] Update alias +- [x] Get aliases ### Sync Jobs - [ ] Create sync job diff --git a/src/Endpoints/mailbox-endpoint.ts b/src/Endpoints/mailbox-endpoint.ts index 76fbe89..f218c53 100644 --- a/src/Endpoints/mailbox-endpoint.ts +++ b/src/Endpoints/mailbox-endpoint.ts @@ -39,4 +39,8 @@ export default { editUserACL: function (this: MailCowClient, payload: ACLEditRequest): Promise { return requestFactory.post(`${this.BASE_URL}/edit/user-acl`, payload, this.HEADERS); }, + + getActiveUserSieve: function (this: MailCowClient, username: string): Promise { + return requestFactory.get(`${this.BASE_URL}/get/active-user-sieve/${username}`, this.HEADERS); + }, } \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index ba2f9c1..a082389 100644 --- a/src/index.ts +++ b/src/index.ts @@ -48,6 +48,7 @@ export default class MailCowClient { delete: MailboxEndpoints.deleteMailbox.bind(this), edit: MailboxEndpoints.editMailbox.bind(this), get: MailboxEndpoints.getMailbox.bind(this), + getUserSieve: MailboxEndpoints.getActiveUserSieve.bind(this), spamscore: { edit: MailboxEndpoints.editSpamScore.bind(this), }