mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-09-04 20:04:06 +07:00
node_modules: update
This commit is contained in:
8
node_modules/nodemailer/lib/sendmail-transport/index.js
generated
vendored
8
node_modules/nodemailer/lib/sendmail-transport/index.js
generated
vendored
@ -70,6 +70,14 @@ class SendmailTransport {
|
||||
let returned;
|
||||
let transform;
|
||||
|
||||
const hasInvalidAddresses = []
|
||||
.concat(envelope.from || [])
|
||||
.concat(envelope.to || [])
|
||||
.some(addr => /^-/.test(addr));
|
||||
if (hasInvalidAddresses) {
|
||||
return done(new Error('Can not send mail. Invalid envelope addresses.'));
|
||||
}
|
||||
|
||||
if (this.args) {
|
||||
// force -i to keep single dots
|
||||
args = ['-i'].concat(this.args).concat(envelope.to);
|
||||
|
Reference in New Issue
Block a user