Commit 29bcd7f
authored
fix(reply): use send-as envelope (#1279)
## What?
Updates the SMTP envelope sender for outgoing mail.
Matcha now uses `send_as_email` for `MAIL FROM` when it is configured.
If it is not configured, it keeps the existing fallback behavior.
This applies to regular email sending and calendar replies.
## Why?
Closes #1274
Previously, `MAIL FROM` was based on `fetch_email`, with `account.email`
as the fallback.
Now the order is:
```text
send_as_email -> fetch_email -> account.email
```
`fetch_email` is used to match incoming messages to an account. For
outgoing mail, the configured Send-As address should be used first.1 parent 6ebdfd7 commit 29bcd7f
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
727 | | - | |
| 727 | + | |
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
| |||
929 | 929 | | |
930 | 930 | | |
931 | 931 | | |
932 | | - | |
| 932 | + | |
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
| |||
0 commit comments