mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-11-02 19:19:19 +08:00
updated reply handling
This commit is contained in:
parent
9da2ad5679
commit
a5c84b866b
1 changed files with 2 additions and 4 deletions
|
|
@ -3462,7 +3462,7 @@ module.exports = (db, server, messageHandler, userHandler) => {
|
|||
|
||||
let checkAddress = (target, addr) => {
|
||||
let addrview = tools.normalizeAddress(addr.address, false, { removeLabel: true, removeDots: true });
|
||||
console.log(addr.address, addrview, userAddresses.includes(addrview));
|
||||
console.log(addr.addres, addrview, userAddresses.includes(addrview));
|
||||
if (!userAddresses.includes(addrview) && !uniqueRecipients.has(addrview)) {
|
||||
uniqueRecipients.add(addrview);
|
||||
if (addr.name) {
|
||||
|
|
@ -3476,9 +3476,7 @@ module.exports = (db, server, messageHandler, userHandler) => {
|
|||
}
|
||||
};
|
||||
|
||||
if (sender && sender.address) {
|
||||
checkAddress(replyTo, sender);
|
||||
}
|
||||
[].concat(sender || {}).forEach(addr => checkAddress(replyTo, addr));
|
||||
|
||||
if (options.reference.action === 'replyAll') {
|
||||
[].concat(headers.to || []).forEach(addr => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue