fix: resolve default sender to canonical identity on local-part login
When authenticating with a local-part username (e.g. 'user' instead of 'user@domain.tld') on Stalwart 0.15.x, the default sender could resolve to an alias identity instead of the canonical mailbox address. - Add emailMatchesUsername() helper that matches local-part usernames against full email addresses (e.g. 'user' matches 'user@domain.tld') - Prefer canonical identities (mayDelete=false) over aliases as tiebreaker - Add preferredPrimaryId to identity store (persisted to localStorage) so users can explicitly set their default sender - Add 'Set as Primary' star button in identity manager modal - Fix sendEmail() fallback identity resolution for local-part usernames - Add i18n strings for all 8 supported locales Fixes #43
This commit is contained in:
@@ -519,6 +519,7 @@
|
||||
"identity_created": "Identità creata con successo",
|
||||
"identity_updated": "Identità aggiornata con successo",
|
||||
"identity_deleted": "Identità eliminata",
|
||||
"identity_set_primary": "Identità principale aggiornata",
|
||||
"identity_create_failed": "Impossibile creare l'identità: {error}",
|
||||
"identity_update_failed": "Impossibile aggiornare l'identità: {error}",
|
||||
"identity_delete_failed": "Impossibile eliminare l'identità: {error}",
|
||||
@@ -1367,6 +1368,7 @@
|
||||
"delete_confirm": "Eliminare questa identità? Questa azione non può essere annullata.",
|
||||
"cannot_delete": "Questa identità non può essere eliminata",
|
||||
"primary_identity": "Principale",
|
||||
"set_as_primary": "Imposta come principale",
|
||||
"no_identities": "Nessuna identità trovata",
|
||||
"display": {
|
||||
"reply_to": "Rispondi a:",
|
||||
|
||||
Reference in New Issue
Block a user