From 1bab845f16d2fc6e07ea97a9a59e21d6a8390ff7 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 1 Mar 2024 22:19:02 +0100 Subject: sendmail -> msmtp --- modules/changes/changes.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'modules/changes') diff --git a/modules/changes/changes.js b/modules/changes/changes.js index dbfe55c..0d8fa24 100644 --- a/modules/changes/changes.js +++ b/modules/changes/changes.js @@ -222,19 +222,19 @@ function sendMail(tomails,body,cb){ } var proc; for(i=0;i started"); + console.log("msmtp process for <"+tomails[i]+"> started"); proc.stdin.on("error",function(e){ console.log(e); cb(e); }); proc.stdin.write("To: "+tomails[i]+"\n"+body,function(proc,mailtarget){ - console.log("sendmail process for <"+mailtarget+"> write completed"); + console.log("msmtp process for <"+mailtarget+"> write completed"); proc.stdin.end(); }.bind(this,proc,tomails[i])); proc.on("exit",function(mailtarget,code,signal){ - console.log("sendmail process for <"+mailtarget+"> exited with code "+code); + console.log("msmtp process for <"+mailtarget+"> exited with code "+code); decProcCounter(); }.bind(this,tomails[i])); //process will linger till it's finished @@ -242,8 +242,7 @@ function sendMail(tomails,body,cb){ } function constructMailBody(diffs){ - var body="From: changes \n"+ - "Subject: changes notification mail\n\n"+ + var body="Subject: changes notification mail\n\n"+ "The changes module recorded some changes in watched webpages.\n"+ "The URLs and their old and new content hashes are shown below.\n\n"; var i; -- cgit v1.2.3-70-g09d2