Skip to content
Snippets Groups Projects
Commit 17b42ea2 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Use sysop name instead of user.email if user.number == 0 (run from JSexec)

The reported issue didnt mention JSexec, but I assume that's what was meant
by "from the command line". (?)

I honestly forgot this script even existed. It's using the old deprecated
SMTP SOML command to send a telegram to a user. There are much better ways
to do that for the local system (e.g. calling system.put_telegram), but I
suspect this script existed since before the JS object model had support
for sending user telegrams.

Anyway, this was a simple change to fix issue #623, but really this
script should probably be rewritten or removed from the repo (we use
MSP for sending inter-BBS instant messages these days instead of SMTP/SOML).
parent cc016c9b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -31,7 +31,7 @@ do {
alert("Invalid HELO response: " + rsp);
break;
}
sock.send("SOML FROM: "+user.email+"\r\n");
sock.send("SOML FROM: "+ (user.number ? user.email : system.operator) +"\r\n");
if(Number((rsp=sock.recvline()).slice(0,3))!=250) {
alert("Invalid SOML response: " + rsp);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment