thunderbird_accounts.mail.clients
Classes
A partial api client for Stalwart Docs: https://stalw.art/docs/api/management/endpoints Code: https://github.com/stalwartlabs/stalwart/tree/main/crates/http/src/management |
|
|
Errors defined in Stalwart's management api https://github.com/stalwartlabs/stalwart/blob/4d819a1041b0adfce3757df50929764afa10e27b/crates/http/src/management/mod.rs#L58 |
- class thunderbird_accounts.mail.clients.StalwartErrors(*values)[source]
Bases:
StrEnumErrors defined in Stalwart’s management api https://github.com/stalwartlabs/stalwart/blob/4d819a1041b0adfce3757df50929764afa10e27b/crates/http/src/management/mod.rs#L58
- class thunderbird_accounts.mail.clients.MailClient[source]
Bases:
objectA partial api client for Stalwart Docs: https://stalw.art/docs/api/management/endpoints Code: https://github.com/stalwartlabs/stalwart/tree/main/crates/http/src/management
Important note: The principal_id field is principal object’s name, not auto-incremented id!
- delete_account(principal_id: str)[source]
Deletes a Stalwart principal object from the given principal_id
- save_email_addresses(principal_id: str, emails: str | list[str])[source]
Adds a new email address to a stalwart’s individual principal by uuid.
- replace_email_addresses(principal_id: str, emails: list[tuple[str, str]])[source]
Replaces an email address with a new one from a stalwart’s individual principal by uuid.