fix: reply-all Cc's the user's own other addresses (multi-account) (#672)

* feat: publish all configured email addresses for reply-all exclusion

* fix: exclude all of the user's own addresses from reply-all, not just the active one

* test: reply-all excludes all of the user's configured addresses
This commit is contained in:
Afonso Coutinho
2026-06-02 03:42:20 +01:00
committed by GitHub
parent 48d3b7abab
commit 634c16a019
4 changed files with 38 additions and 12 deletions
+9
View File
@@ -532,6 +532,15 @@ function _publishActiveAccount() {
|| accts.find(a => a && a.is_default)
|| accts[0];
window._myEmailAddress = (active && (active.from_address || active.imap_user)) || '';
// Also publish every configured address so reply-all can exclude all of
// the user's own mailboxes, not just the active one (multi-account users
// were getting their other addresses added to Cc).
const all = [];
for (const a of accts) {
if (a && a.from_address) all.push(a.from_address);
if (a && a.imap_user) all.push(a.imap_user);
}
window._myEmailAddresses = all;
} catch (_) {}
}