• Mailproc.ini programs

    From Merlin@VERT/CARSO to All on Wed Jan 5 23:13:00 2005
    Hi,. I've just updated to latest CVS and my mailproc program has stopped ãworking. In the mailproc.ini it says at the bottomãã[emailstamp.js]ãnative=ããMy emailstamp.js is below. Basically, it adds a tag to all incoming mail ãwith my BBS QWK ID and the IP of the smtp server delivering the email.ãIt worked prior to update and I can't see anything wrong with it...ãIs there an expert who can cast their eye upon it...ãTaãMErlinãã// emailstamp.jsãã// SMTP Email stamp "Mail Processor" moduleã// Requires Synchronet Mail Server 1.298 or laterãã// Set to false at any time to indicate a processing failureãvar success=true;ãã// These lines open the processing error output file as a new File object.ã// If there are any processing errors (e.g. filtered context, blocked ãsender),ã// you can reject the message by simply writing some text to 'errfile'.ãvar errfile = new File(processing_error_filename);ãif(!errfile.open("w"))ã exit();ãã// These lines read the recipient list into a new 'recipient' object ãarray.ãvar rcptlst = new File(recipient_list_filename);ãif(!rcptlst.open("r"))ã exit();ãvar recipient=rcptlst.iniGetAllObjects("number");ã// At this point we can access the list of recipients very easilyã// using the 'recipient' object array.ãã// These lines open the message text file in append mode (writing to the ãend)ãvar msgtxt = new File(message_text_filename);ãif(!msgtxt.open("a+")) // Change the mode to "r+" for "read/update" ãaccessã exit();ãã// Write footer to incoming emailããmsgtxt.writeln("---");ãmsgtxt.writeln("Anti-spam control key: " + system.qwk_id + "/" + ãclient.ip_address + "/" + "0");ãã// If there were any processing errors... reject the messageãif(!success)ã errfile.writeln("A mail processing error occurred. Message ãrejected.");ããããã---ã þ Synchronet þ CarSo BBs þ Beverley, UK þ telnet://carso.synchro.netã
  • From Digital Man@VERT to Merlin on Wed Jan 5 16:40:56 2005
    Re: Mailproc.ini programsã By: Merlin to All on Wed Jan 05 2005 11:13 pmãã > Hi,. I've just updated to latest CVS and my mailproc program has stoppedã > working. In the mailproc.ini it says at the bottomã > ã > [emailstamp.js]ã > native=ã > ã > My emailstamp.js is below. Basically, it adds a tag to all incoming mailã > with my BBS QWK ID and the IP of the smtp server delivering the email.ã > It worked prior to update and I can't see anything wrong with it...ã > Is there an expert who can cast their eye upon it...ããIs there any indication in your logs that your mail processor is running?ãPerhaps you can paste a port of your mail server log when receiving an SMTPãmessage?ãã(Thanks for posting this question here. This area doesn't get much traffic).ã:-)ãã digital manããSnapple "Real Fact" #114:ãThe oldest known animal was a tortoise, which lived to be 152 years old. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Merlin@VERT to Digital Man on Thu Jan 6 17:36:33 2005
    Ah, log says:ããJan 6 17:35:00 carso synchronet: mail 0028 SMTP RX: RCPT ãTO:<merlin@carso.dyndns.org>ãJan 6 17:35:00 carso synchronet: mail 0028 SMTP RX: DATAãJan 6 17:35:00 carso synchronet: mail 0028 SMTP End of message (body: 40 ãlines, 1379 bytes, header: 22 lines, 1047 bytes)ãJan 6 17:35:00 carso synchronet: mail 0028 SMTP Executing external process: ãemailstamp.jsãJan 6 17:35:00 carso synchronet: mail 0028 !SMTP system(emailstamp.js) ãreturned 512 (errno: 2)ãJan 6 17:35:00 carso synchronet: mail 0028 SMTP Created message #3291 from ãRichard Brumpton to merlin@carso.dyndns.org <#1>ããDo you know what errno 2 means?!?!ããMerinãã"Digital Man" <digital.man@vert.synchro.net> wrote in message ãnews:41DC8918.68.sync-js@vert.synchro.net...ã> Re: Mailproc.ini programsã> By: Merlin to All on Wed Jan 05 2005 11:13 pmã>ã> > Hi,. I've just updated to latest CVS and my mailproc program has stoppedã> > working. In the mailproc.ini it says at the bottomã> >ã> > [emailstamp.js]ã> > native=ã> >ã> > My emailstamp.js is below. Basically, it adds a tag to all incoming mailã> > with my BBS QWK ID and the IP of the smtp server delivering the email.ã> > It worked prior to update and I can't see anything wrong with it...ã> > Is there an expert who can cast their eye upon it...ã>ã> Is there any indication in your logs that your mail processor is running?ã> Perhaps you can paste a port of your mail server log when receiving an ã> SMTPã> message?ã>ã> (Thanks for posting this question here. This area doesn't get much ã> traffic).ã> :-)ã>ã> digital manã>ã> Snapple "Real Fact" #114:ã> The oldest known animal was a tortoise, which lived to be 152 years old.ã>ã> --- Synchronet 3.12b-Win32 NNTP Service 1.80ã> * Vertrauen - Anaheim Hills, California - telnet://vert.synchro.netã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Merlin on Thu Jan 6 20:25:43 2005
    Re: Re: Mailproc.ini programsã By: Merlin to Digital Man on Thu Jan 06 2005 05:36 pmãã > Ah, log says:ã > ã > Jan 6 17:35:00 carso synchronet: mail 0028 SMTP RX: RCPTã > TO:<merlin@carso.dyndns.org>ã > Jan 6 17:35:00 carso synchronet: mail 0028 SMTP RX: DATAã > Jan 6 17:35:00 carso synchronet: mail 0028 SMTP End of message (body: 40ã > lines, 1379 bytes, header: 22 lines, 1047 bytes)ã > Jan 6 17:35:00 carso synchronet: mail 0028 SMTP Executing external process:ã > emailstamp.jsã > Jan 6 17:35:00 carso synchronet: mail 0028 !SMTP system(emailstamp.js)ã > returned 512 (errno: 2)ã > Jan 6 17:35:00 carso synchronet: mail 0028 SMTP Created message #3291 fromã > Richard Brumpton to merlin@carso.dyndns.org <#1>ã > ã > Do you know what errno 2 means?!?!ããIt mean "file not found". The "system()" call means that it thinks the mailãproc is native. Either set "native=false" or just remove that key (The defaultãvalue is false).ãã digital manããSnapple "Real Fact" #89:ãThe average American walks 18,000 steps a day.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Merlin@VERT to Digital Man on Fri Jan 7 17:12:05 2005
    Right, ive fixed that to native=false and now it is sort of working....ããJan 7 17:09:29 carso synchronet: mail 0030 SMTP End of message (body: 40 ãlines, 1385 bytes, header: 22 lines, 1047 bytes)ãJan 7 17:09:29 carso synchronet: mail 0030 SMTP Executing external process: ãemailstamp.jsãJan 7 17:09:29 carso synchronet: mail 0030 JavaScript: Creating runtime: ã8388608 bytesãJan 7 17:09:29 carso synchronet: mail 0030 JavaScript: Initializing context ã(stack: 16384 bytes)ãJan 7 17:09:29 carso synchronet: mail 0030 SMTP Created message #3307 from ãRichard Brumpton to merlin@carso.dyndns.org <#1>ãããThe emailstamp.js is running and the mail is being posted to the bBs, but ãthe emailstamp.js is not appending any text to the message. As far as I can ãsee it should work ok and the script is the same that was working in the ãprevious version....Has anything changed?ããMerlinãã"Digital Man" <digital.man@vert.synchro.net> wrote in message ãnews:41DE0F47.71.sync-js@vert.synchro.net...ã> Re: Re: Mailproc.ini programsã> By: Merlin to Digital Man on Thu Jan 06 2005 05:36 pmãã> It mean "file not found". The "system()" call means that it thinks the ã> mailã> proc is native. Either set "native=false" or just remove that key (The ã> defaultã> value is false).ã>ã> digital manã>ã> Snapple "Real Fact" #89:ã> The average American walks 18,000 steps a day.ã>ã> --- Synchronet 3.12b-Win32 NNTP Service 1.80ã> * Vertrauen - Anaheim Hills, California - telnet://vert.synchro.netã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Merlin on Fri Jan 7 15:11:03 2005
    Re: Re: Mailproc.ini programsã By: Merlin to Digital Man on Fri Jan 07 2005 05:12 pmãã > Right, ive fixed that to native=false and now it is sort of working....ã > ã > Jan 7 17:09:29 carso synchronet: mail 0030 SMTP End of message (body: 40ã > lines, 1385 bytes, header: 22 lines, 1047 bytes)ã > Jan 7 17:09:29 carso synchronet: mail 0030 SMTP Executing external process:ã > emailstamp.jsã > Jan 7 17:09:29 carso synchronet: mail 0030 JavaScript: Creating runtime:ã > 8388608 bytesã > Jan 7 17:09:29 carso synchronet: mail 0030 JavaScript: Initializing contextã > (stack: 16384 bytes)ã > Jan 7 17:09:29 carso synchronet: mail 0030 SMTP Created message #3307 fromã > Richard Brumpton to merlin@carso.dyndns.org <#1>ã > ã > ã > The emailstamp.js is running and the mail is being posted to the bBs, butã > the emailstamp.js is not appending any text to the message. As far as I canã > see it should work ok and the script is the same that was working in theã > previous version....Has anything changed?ããA lot has changed in regards to external mail processing (I thought that wasãobvious?). :-)ããBut it should work of course. I'll do some testing here and double-check, butãin the mena-time, adding some log() lines to your script might help track downãthe problem.ãã digital manããSnapple "Real Fact" #57:ãYou blink over 10,000,000 times a year.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Merlin on Fri Jan 7 18:42:13 2005
    Re: Re: Mailproc.ini programsã By: Merlin to Digital Man on Fri Jan 07 2005 05:12 pmãã > Right, ive fixed that to native=false and now it is sort of working....ã > ã > Jan 7 17:09:29 carso synchronet: mail 0030 SMTP End of message (body: 40ã > lines, 1385 bytes, header: 22 lines, 1047 bytes)ã > Jan 7 17:09:29 carso synchronet: mail 0030 SMTP Executing external process:ã > emailstamp.jsã > Jan 7 17:09:29 carso synchronet: mail 0030 JavaScript: Creating runtime:ã > 8388608 bytesã > Jan 7 17:09:29 carso synchronet: mail 0030 JavaScript: Initializing contextã > (stack: 16384 bytes)ã > Jan 7 17:09:29 carso synchronet: mail 0030 SMTP Created message #3307 fromã > Richard Brumpton to merlin@carso.dyndns.org <#1>ã > ã > ã > The emailstamp.js is running and the mail is being posted to the bBs, butã > the emailstamp.js is not appending any text to the message. As far as I canã > see it should work ok and the script is the same that was working in theã > previous version....Has anything changed?ããThe example (exec/mailproc_example.js) still appears to work with v3.12a, soãI'm curious as to what the problem is with your mail processor.ããI also was unable to reproduce any scenario where the "native" property was setãto true (unless I specifically set it to "1"/"true").ãã digital manããSnapple "Real Fact" #105:ãYou will burn 7% more calories walking on hard dirt than pavement.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Merlin@VERT to Digital Man on Sat Jan 8 20:30:55 2005
    I've just settled down in front of the PC for a hour of debugging the ãemailstamp problem. Though, I'd sent it another test to see what happens, ãand its started working again.ããNo idea how or why, it definately was broken yesterday. anyway I will keep ãan eye on it and see what happens!ããMerlinãã"Digital Man" <digital.man@vert.synchro.net> wrote in message ãnews:41DF4885.74.sync-js@vert.synchro.net...ã> Re: Re: Mailproc.ini programsã> By: Merlin to Digital Man on Fri Jan 07 2005 05:12 pmã>ã> > Right, ive fixed that to native=false and now it is sort of working....ã> >ã> > Jan 7 17:09:29 carso synchronet: mail 0030 SMTP End of message (body: ã> > 40ã> > lines, 1385 bytes, header: 22 lines, 1047 bytes)ã> > Jan 7 17:09:29 carso synchronet: mail 0030 SMTP Executing external ã> > process:ã> > emailstamp.jsã> > Jan 7 17:09:29 carso synchronet: mail 0030 JavaScript: Creating ã> > runtime:ã> > 8388608 bytesã> > Jan 7 17:09:29 carso synchronet: mail 0030 JavaScript: Initializing ã> > contextã> > (stack: 16384 bytes)ã> > Jan 7 17:09:29 carso synchronet: mail 0030 SMTP Created message #3307 ã> > fromã> > Richard Brumpton to merlin@carso.dyndns.org <#1>ã> >ã> >ã> > The emailstamp.js is running and the mail is being posted to the bBs, ã> > butã> > the emailstamp.js is not appending any text to the message. As far as I ã> > canã> > see it should work ok and the script is the same that was working in theã> > previous version....Has anything changed?ã>ã> The example (exec/mailproc_example.js) still appears to work with v3.12a, ã> soã> I'm curious as to what the problem is with your mail processor.ã>ã> I also was unable to reproduce any scenario where the "native" property ã> was setã> to true (unless I specifically set it to "1"/"true").ã>ã> digital manã>ã> Snapple "Real Fact" #105:ã> You will burn 7% more calories walking on hard dirt than pavement.ã>ã> --- Synchronet 3.12b-Win32 NNTP Service 1.80ã> * Vertrauen - Anaheim Hills, California - telnet://vert.synchro.netã>ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Merlin on Mon Jan 10 16:27:47 2005
    Re: Re: Mailproc.ini programsã By: Merlin to Digital Man on Sat Jan 08 2005 08:30 pmãã > I've just settled down in front of the PC for a hour of debugging theã > emailstamp problem. Though, I'd sent it another test to see what happens,ã > and its started working again.ã > ã > No idea how or why, it definately was broken yesterday. anyway I will keepã > an eye on it and see what happens!ããI did find a bug with multiple simultaneous SMTP receive threads and externalãmail processing. It's been fixed in CVS for the next release. Perhaps this wasãthe cause.ãã digital manããSnapple "Real Fact" #134:ãAn ant can lift 50 times its own weight. ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã