Files
workavia-mail-front/docs/adr/0060-team-mailboxes-matching.md
T
2025-04-21 03:23:14 -07:00

27 lines
825 B
Markdown

# 60. 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