mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Fixes #693: findIdentityByMessage gives too great a weight to the default identity. Only test the 'Delivered-To' header if no other header contained a matching identity, as 'Delivered-To' will usually contain the default identity.
This commit is contained in:
parent
2a7d8ccab8
commit
e1d104f8ba
1 changed files with 5 additions and 2 deletions
|
|
@ -696,7 +696,10 @@
|
|||
case Enums.ComposeType.ReplyAll:
|
||||
case Enums.ComposeType.Forward:
|
||||
case Enums.ComposeType.ForwardAsAttachment:
|
||||
_.each(_.union(oMessage.to, oMessage.cc, oMessage.bcc, oMessage.deliveredTo), fEachHelper);
|
||||
_.each(_.union(oMessage.to, oMessage.cc, oMessage.bcc), fEachHelper);
|
||||
if (!oResultIdentity) {
|
||||
_.each(oMessage.deliveredTo, fEachHelper);
|
||||
}
|
||||
break;
|
||||
case Enums.ComposeType.Draft:
|
||||
_.each(_.union(oMessage.from, oMessage.replyTo), fEachHelper);
|
||||
|
|
@ -2183,4 +2186,4 @@
|
|||
|
||||
module.exports = ComposePopupView;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue