TF-2469 Fix email set into root mailbox's SENT instead of team mailbox's SENT (#3482)

This commit is contained in:
Dat Dang
2025-02-18 14:06:08 +07:00
committed by GitHub
parent ca3905cb7a
commit 636df94458
6 changed files with 106 additions and 9 deletions
+26
View File
@@ -0,0 +1,26 @@
# 57. Team Mailboxes Matching
Date: 2025-02-18
## Status
Accepted
## Context
- Team mailboxes were not considered when sending emails
- Sent emails were saved to default sent mailbox, although selected identity's email was based on team mailbox email
- User does not have permission to edit mailboxes of team mailboxes
## Decision
- Instead of hard coding default sent mailbox, sent emails will be saved to mailbox based on
- identity's email
- mailbox's name (hard coded English)
- Only when there's no matching mailbox, default sent mailbox will be used
- Same logic is applied to drafts mailbox and outbox mailbox
## Consequences
- Team mailboxes will be considered when sending emails
- Potentially, if team mailboxes existed but the name is not in English, sent emails will be saved to default sent mailbox