Match identities last by delivered-to header

pull/174/head
M66B 5 years ago
parent 7600ed2a48
commit 929d286edd

@ -1080,7 +1080,7 @@ Note that this is independent of receiving messages.
**(34) How are identities matched?** **(34) How are identities matched?**
Identities are as expected matched by account. Identities are as expected matched by account.
For incoming messages the *to*, *cc*, *bcc*, *(X-)delivered/envelope/original-to* and *from* addresses will be checked (in this order) For incoming messages the *to*, *cc*, *bcc*, *from* and *(X-)delivered/envelope/original-to* addresses will be checked (in this order)
and for outgoing messages (drafts, outbox and sent) only the *from* addresses will be checked. and for outgoing messages (drafts, outbox and sent) only the *from* addresses will be checked.
The matched address will be shown as *via* in the addresses section. The matched address will be shown as *via* in the addresses section.

@ -2458,14 +2458,14 @@ class Core {
addresses.addAll(Arrays.asList(message.cc)); addresses.addAll(Arrays.asList(message.cc));
if (message.bcc != null) if (message.bcc != null)
addresses.addAll(Arrays.asList(message.bcc)); addresses.addAll(Arrays.asList(message.bcc));
if (message.from != null)
addresses.addAll(Arrays.asList(message.from));
if (message.deliveredto != null) if (message.deliveredto != null)
try { try {
addresses.add(new InternetAddress(message.deliveredto)); addresses.add(new InternetAddress(message.deliveredto));
} catch (AddressException ex) { } catch (AddressException ex) {
Log.w(ex); Log.w(ex);
} }
if (message.from != null)
addresses.addAll(Arrays.asList(message.from));
} }
// Search for matching identity // Search for matching identity

Loading…
Cancel
Save