-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getFirstAccountId need to be implemented as getPersonalAccountId #67
Comments
But isn't there the same problem with personal accounts? |
Actually:
This is usefull for implementing a Proxy, where capabilities are implemented by different servers.
I would expect primary accounts to be personnal, but that is already an assumption.
IMO we can easily improve things by having:
Is there a way to mark things as deprecated in typescript ? |
maybe something like (untested):
is it right? |
Maybe refining a bit the error message but yes ;-)
Also coming from the Java world I would likely encode the 'missing' concept in the return type instead of hard coding failure, which would then allow the caller to decide what to do. |
Because we will use it in
|
I found that emailSubmission_get/emailSubmission_changes/emailSubmission_set should depends getPrimaryAccountId('urn:ietf:params:jmap:submission') ... 😭 |
The spec does not guarantee the personal(primary mail) account is the first element of session.accounts. I'm not sure whether JamesServer supports account/mailbox sharing. But cyrus-imapd seems that the personal account always is the last element of session.accounts.
I suggest that we add a getPersonalAccountId() method, and keep getFirstAccountId until 2.0 release.
The text was updated successfully, but these errors were encountered: