Changed order of address matching

pull/174/head
M66B 5 years ago
parent befb18dc23
commit 2274d4870e

@ -1078,8 +1078,8 @@ Note that this is independent of receiving messages.
**(34) How are identities matched?**
Identities are as expected matched by account.
For incoming messages the *to*, *cc*, *bcc*, *from* and *(X-)delivered/envelope/original-to* addresses will be checked
and for outgoing messages (drafts, outbox and sent) the *from* addresses will be checked.
For incoming messages the *to*, *cc*, *bcc*, *(X-)delivered/envelope/original-to* and *from* addresses will be checked (in this order)
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.

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

Loading…
Cancel
Save