matcha
matcha copied to clipboard
BUG: JMAP jmapEmailToBackend only handles first From address
Describe the bug
In backend/jmap/jmap.go, jmapEmailToBackend only takes the first address from the From list. While RFCs recommend a single address, multiple addresses are technically allowed in the From header.
To reproduce
- Receive an email with multiple addresses in the
Fromheader. - Only the first one will be shown.
Expected behavior
Handle multiple From addresses, perhaps by joining them with a comma or showing the first one with an indicator.
Additional context
if len(eml.From) > 0 {
e.From = eml.From[0].String()
}
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.