mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-31 14:55:41 +00:00
fix(mail): pick proper "from" address when replying/forwarding
Fixes #5056
This commit is contained in:
1 parent
089935297c
commit
c99170b9bc
7 files changed
+173
-78
No files matched your search
@@ -443,7 +443,7 @@
|
||||
return Message.$$resource.fetch(_this.$absolutePath({asDraft: true}), 'edit').then(function(data) {
|
||||
// Try to match a known account identity from the specified "from" address
|
||||
var identity = _.find(_this.$mailbox.$account.identities, function(identity) {
|
||||
return data.from.toLowerCase().indexOf(identity.email) !== -1;
|
||||
return data.from && data.from.toLowerCase().indexOf(identity.email) !== -1;
|
||||
});
|
||||
if (identity)
|
||||
data.from = identity.full;
|
||||
|
||||
Reference in new issue
Block a user