From 778ccb73d97aa905efaa4ef9c6ff9a8047637145 Mon Sep 17 00:00:00 2001 From: MeaTLoTioN Date: Mon, 21 Mar 2022 20:32:12 +0000 Subject: [PATCH] add netmail to configured network's master sysop --- scripts/mL-nodeapp.mpy | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/mL-nodeapp.mpy b/scripts/mL-nodeapp.mpy index 490b738..7b4c671 100644 --- a/scripts/mL-nodeapp.mpy +++ b/scripts/mL-nodeapp.mpy @@ -168,10 +168,18 @@ def sendEmail() : f.close() subject = "New Node Application" - baseID = 1 + emailBaseID = 1 + netmailBaseID = 9 + + # sent netmail to configured network's master sysop + menucmd('MX', tmpFile+';'+str(netmailBaseID)+';'+'Node Application Robot'+';'+SYSOP+';'+subject+";"+netAddress) + + # send local email to the sysop of this bbs + menucmd('MX', tmpFile+';'+str(emailBaseID)+';'+'Node Application Robot'+';'+SYSOP+';'+subject) + + # send local email to the person requesting the new node + menucmd('MX', tmpFile+';'+str(emailBaseID)+';'+'Node Application Robot'+';'+handle+';'+subject) - menucmd('MX', tmpFile+';'+str(baseID)+';'+'Node Application Robot'+';'+SYSOP+';'+subject) - menucmd('MX', tmpFile+';'+str(baseID)+';'+'Node Application Robot'+';'+handle+';'+subject) os.remove(tmpFile) # add/edit application