• code example

    From Finnigann@VERT/BNB to All on Fri Aug 18 17:12:00 2006
    ã Can anyone post some baja code for extracting messages from the messageã data base. sort of the opposite of smbutl (i cmd)ãã Thanksãããã _ _ _ _ _ _ _ _ _ ã / \ / \ / \ / \ / \ / \ / \ / \ / \ ã ( F | i | n | n | i | g | a | n | n )ã \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ããã... A man's only as old as the woman he feels.ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
  • From Digital Man@VERT to Finnigann on Fri Aug 18 14:02:41 2006
    Re: code exampleã By: Finnigann to All on Fri Aug 18 2006 05:12 pmãã > Can anyone post some baja code for extracting messages from the messageã > data base. sort of the opposite of smbutl (i cmd)ããsmbutil can be used to extra messages from the message base. Baja doesn't haveãany functions for directly accessing the message data base files.ãã digital manããSnapple "Real Fact" #110:ãFrogs never drink.ãNorco, CA WX: 105.2øF, 30% humidity, 0 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Finnigann@VERT/BNB to Digital Man on Fri Aug 18 19:42:00 2006
    With regards to the social ramifications; ã Digital Man wrote to Finnigann <=-ãã DM> Re: code exampleã DM> By: Finnigann to All on Fri Aug 18 2006 05:12 pmãã > Can anyone post some baja code for extracting messages from the messageã > data base. sort of the opposite of smbutl (i cmd)ãã DM> smbutil can be used to extra messages from the message base. Bajaã DM> doesn't have any functions for directly accessing the message data baseã DM> files.ã ã Well that was my first impulse. But after studying the help/opt list. Iã am stumped as to which switches would define the message(s) to extract.ãã ããã _ _ _ _ _ _ _ _ _ ã / \ / \ / \ / \ / \ / \ / \ / \ / \ ã ( F | i | n | n | i | g | a | n | n )ã \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ããã... I like to learn from my mistakes (Why waste so many opportunities?)ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
  • From Digital Man@VERT to Finnigann on Fri Aug 18 17:23:07 2006
    Re: Re: code exampleã By: Finnigann to Digital Man on Fri Aug 18 2006 07:42 pmãã > -=> With regards to the social ramifications;ã > Digital Man wrote to Finnigann <=-ã > ã > DM> Re: code exampleã > DM> By: Finnigann to All on Fri Aug 18 2006 05:12 pmã > ã > > Can anyone post some baja code for extracting messages from the messageã > > data base. sort of the opposite of smbutl (i cmd)ã > ã > DM> smbutil can be used to extra messages from the message base. Bajaã > DM> doesn't have any functions for directly accessing the message data baseã > DM> files.ã > ã > Well that was my first impulse. But after studying the help/opt list. Iã > am stumped as to which switches would define the message(s) to extract.ããI suppose I mispoke: you can *read* messages (interactively) with smbutilã(using the 'r' command), but can't really "extract" message (programatically).ãThis could be done with small JS module however.ããIf I knew more about exactly what you're trying to accomplish, I might be ableãto help more.ãã digital manããSnapple "Real Fact" #85:ãThe Mona Lisa has no eyebrows.ãNorco, CA WX: 87.2øF, 34% humidity, 4 mph ENE wind, 0.02 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Finnigann@VERT/BNB to Digital Man on Fri Aug 18 22:13:00 2006
    With regards to the social ramifications; ã Digital Man wrote to Finnigann <=-ãã DM> Re: Re: code exampleã DM> By: Finnigann to Digital Man on Fri Aug 18 2006 07:42 pmãã > -=> With regards to the social ramifications;ã > Digital Man wrote to Finnigann <=-ã >ã > DM> Re: code exampleã > DM> By: Finnigann to All on Fri Aug 18 2006 05:12 pmã >ã > > Can anyone post some baja code for extracting messages from the messageã > > data base. sort of the opposite of smbutl (i cmd)ã >ã > DM> smbutil can be used to extra messages from the message base. Bajaã > DM> doesn't have any functions for directly accessing the message data baseã > DM> files.ã >ã > Well that was my first impulse. But after studying the help/opt list. Iã > am stumped as to which switches would define the message(s) to extract.ãã DM> I suppose I mispoke: you can *read* messages (interactively) withã DM> smbutil (using the 'r' command), but can't really "extract" messageã DM> (programatically). This could be done with small JS module however.ãã DM> If I knew more about exactly what you're trying to accomplish, I mightã DM> be able to help more.ã ã If you recall Jazzman's sports... game? I was wondering how syncdataã might be useful for tying other BBS' together.ãã SMBUTIL can be made to upload game data. getting it out is anotherã item.ãã But if a javascript segment can be called to cull out messages for theã door (making large assumptions) or added functionality to smbutil,ã would be great.ãã Of course you know I'm not a programmer, but is this function in theã SDK? I would think someone else would have sought out syncdata toã transport data before now.ãããã _ _ _ _ _ _ _ _ _ ã / \ / \ / \ / \ / \ / \ / \ / \ / \ ã ( F | i | n | n | i | g | a | n | n )ã \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ããã... Lettuce hail Caesar salad: We who are about to sigh dilute you.ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
  • From Digital Man@VERT to Finnigann on Fri Aug 18 18:41:43 2006
    Re: Re: code exampleã By: Finnigann to Digital Man on Fri Aug 18 2006 10:13 pmãã > -=> With regards to the social ramifications;ã > Digital Man wrote to Finnigann <=-ã > ã > DM> Re: Re: code exampleã > DM> By: Finnigann to Digital Man on Fri Aug 18 2006 07:42 pmã > ã > > -=> With regards to the social ramifications;ã > > Digital Man wrote to Finnigann <=-ã > >ã > > DM> Re: code exampleã > > DM> By: Finnigann to All on Fri Aug 18 2006 05:12 pmã > >ã > > > Can anyone post some baja code for extracting messages from the messaã > > > data base. sort of the opposite of smbutl (i cmd)ã > >ã > > DM> smbutil can be used to extra messages from the message base. Bajaã > > DM> doesn't have any functions for directly accessing the message data bã > > DM> files.ã > >ã > > Well that was my first impulse. But after studying the help/opt list. Iã > > am stumped as to which switches would define the message(s) to extract.ã > ã > DM> I suppose I mispoke: you can *read* messages (interactively) withã > DM> smbutil (using the 'r' command), but can't really "extract" messageã > DM> (programatically). This could be done with small JS module however.ã > ã > DM> If I knew more about exactly what you're trying to accomplish, I mightã > DM> be able to help more.ã > ã > If you recall Jazzman's sports... game? I was wondering how syncdataã > might be useful for tying other BBS' together.ã > ã > SMBUTIL can be made to upload game data. getting it out is anotherã > item.ã > ã > But if a javascript segment can be called to cull out messages for theã > door (making large assumptions) or added functionality to smbutil,ã > would be great.ããEven if smbutil could extract a specific message, how would you know *which*ãmessage to extract?ã ã > Of course you know I'm not a programmer, but is this function in theã > SDK? I would think someone else would have sought out syncdata toã > transport data before now.ããA JS module would be the way to go. I'm not sure which SDK you're referring to.ãThe XSDK does not include any message base functionality. The SMBLIB isãavailable as a separate library for message base access, but a JS module wouldãbe much easier.ãã digital manããSnapple "Real Fact" #22:ãAlaska has the highest percentage of people who walk to work.ãNorco, CA WX: 83.8øF, 36% humidity, 4 mph NE wind, 0.06 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Finnigann@VERT/BNB to Digital Man on Fri Aug 18 23:26:00 2006
    With regards to the social ramifications; ã Digital Man wrote to Finnigann <=-ãã DM> Re: Re: code exampleã DM> By: Finnigann to Digital Man on Fri Aug 18 2006 10:13 pmãã > -=> With regards to the social ramifications;ã > Digital Man wrote to Finnigann <=-ã >ã > DM> Re: Re: code exampleã > DM> By: Finnigann to Digital Man on Fri Aug 18 2006 07:42 pmã >ã > > -=> With regards to the social ramifications;ã > > Digital Man wrote to Finnigann <=-ã > >ã > > DM> Re: code exampleã > > DM> By: Finnigann to All on Fri Aug 18 2006 05:12 pmã > >ã > > > Can anyone post some baja code for extracting messages from the messaã > > > data base. sort of the opposite of smbutl (i cmd)ã > >ã > > DM> smbutil can be used to extra messages from the message base. Bajaã > > DM> doesn't have any functions for directly accessing the message data bã > > DM> files.ã > >ã > > Well that was my first impulse. But after studying the help/opt list. Iã > > am stumped as to which switches would define the message(s) to extract.ã >ã > DM> I suppose I mispoke: you can *read* messages (interactively) withã > DM> smbutil (using the 'r' command), but can't really "extract" messageã > DM> (programatically). This could be done with small JS module however.ã >ã > DM> If I knew more about exactly what you're trying to accomplish, I mightã > DM> be able to help more.ã >ã > If you recall Jazzman's sports... game? I was wondering how syncdataã > might be useful for tying other BBS' together.ã >ã > SMBUTIL can be made to upload game data. getting it out is anotherã > item.ã >ã > But if a javascript segment can be called to cull out messages for theã > door (making large assumptions) or added functionality to smbutil,ã > would be great.ãã DM> Even if smbutil could extract a specific message, how would you knowã DM> *which* message to extract?ãã Well I was thinking that switches would tell what values to look for inã a message.ãã Let me just make up some for demonstration puposes.ããusage: smbutil [-opts] cmd <filespec.shd>ããcmd:ã l[n] = list msgs starting at number nã r[n] = read msgs starting at number nã v[n] = view msg headers starting at number nã i[f] = import msg from text file f (or use stdin)ã e[f] = import e-mail from text file f (or use stdin)ã n[f] = import netmail from text file f (or use stdin)ã /m = export message from message baseã /t = set 'To' to sort forã /s = set 'subject' to sort forã h = dump hash fileã s = display msg base statusã c = change msg base statusã d = delete all msgsã m = maintain msg base - delete old msgs and msgs over maxã p[k] = pack msg base (k specifies minimum packable Kbytes)ãopts:ã f<s> = set 'from' user name for imported messageã e<s> = set 'from' user number for imported messageãã smbutil /m /tdoorgame /sweeknumber \sbbs\xtrn\doorgame\input.datããããã > Of course you know I'm not a programmer, but is this function in theã > SDK? I would think someone else would have sought out syncdata toã > transport data before now.ãã DM> A JS module would be the way to go. I'm not sure which SDK you'reã DM> referring to. The XSDK does not include any message base functionality.ã DM> The SMBLIB is available as a separate library for message base access,ã DM> but a JS module would be much easier.ã ã Well could something highly configurable be written in baja/javascript?ããã// syncdata.jsã// Pulls text from syncdata message baseã// $Id: syncdata.js,v .12 2006/08/19 rswindell Exp $ã// @format.tab-size 8, @format.use-tabs trueããload("sbbsdefs.js");ãã// Available Command-line options:ã//ã// m indicates extractionã// t sets 'To' field valueã// s sets 'Subject' field valueã// syncdata is the default message baseã//ã// syncdata.js /m /tdoorgame /sweeknumber \sbbs\xtrn\doorgame\input.datãã P_OPENCLOSEãããã<bedtime>ãããã _ _ _ _ _ _ _ _ _ ã / \ / \ / \ / \ / \ / \ / \ / \ / \ ã ( F | i | n | n | i | g | a | n | n )ã \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ããã... "Other kings said I was _daft_ to build a castle in a swamp!"ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
  • From Death@VERT/DARKNESS to Digital Man on Sat Aug 19 03:58:00 2006
    ã > Even if smbutil could extract a specific message, how would you know *which*ã > message to extract?ããWould it be possible to maybe set smbutil to scan for messages with aãcertain header?? Then if all the messages connected to the game wereãunder as certain header you could only extract those messages? Justãthrowing a bone out here.. =o)ããDeathãããã Home of DarkNetããã---ã þ Synchronet þ Darkness BBS - darkness.synchro.netã
  • From Finnigann@VERT/BNB to Death on Sat Aug 19 10:28:00 2006
    With regards to the social ramifications; ã Death wrote to Digital Man <=-ããã > Even if smbutil could extract a specific message, how would you know *which*ã > message to extract?ãã De> Would it be possible to maybe set smbutil to scan for messages with aã De> certain header?? Then if all the messages connected to the game wereã De> under as certain header you could only extract those messages? Justã De> throwing a bone out here.. =o)ããã SMBUTIL doesn't extract and there are no switches for searches. That'sã what I was asking about. I believe a small .JS file would be easierã than re-writing smbutil.ãã I even started one for him (-:ãããã _ _ _ _ _ _ _ _ _ ã / \ / \ / \ / \ / \ / \ / \ / \ / \ ã ( F | i | n | n | i | g | a | n | n )ã \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ããã... Her sewing machine's been out of thread for some time now. ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
  • From Digital Man@VERT to Finnigann on Mon Aug 21 16:44:16 2006
    Re: Re: code exampleã By: Finnigann to Digital Man on Fri Aug 18 2006 11:26 pmãã > -=> With regards to the social ramifications;ã > Digital Man wrote to Finnigann <=-ã > ã > DM> Re: Re: code exampleã > DM> By: Finnigann to Digital Man on Fri Aug 18 2006 10:13 pmã > ã > > -=> With regards to the social ramifications;ã > > Digital Man wrote to Finnigann <=-ã > >ã > > DM> Re: Re: code exampleã > > DM> By: Finnigann to Digital Man on Fri Aug 18 2006 07:42 pmã > >ã > > > -=> With regards to the social ramifications;ã > > > Digital Man wrote to Finnigann <=-ã > > >ã > > > DM> Re: code exampleã > > > DM> By: Finnigann to All on Fri Aug 18 2006 05:12 pmã > > >ã > > > > Can anyone post some baja code for extracting messages from the meã > > > > data base. sort of the opposite of smbutl (i cmd)ã > > >ã > > > DM> smbutil can be used to extra messages from the message base. Bajaã > > > DM> doesn't have any functions for directly accessing the message datã > > > DM> files.ã > > >ã > > > Well that was my first impulse. But after studying the help/opt list.ã > > > am stumped as to which switches would define the message(s) to extracã > >ã > > DM> I suppose I mispoke: you can *read* messages (interactively) withã > > DM> smbutil (using the 'r' command), but can't really "extract" messageã > > DM> (programatically). This could be done with small JS module however.ã > >ã > > DM> If I knew more about exactly what you're trying to accomplish, I migã > > DM> be able to help more.ã > >ã > > If you recall Jazzman's sports... game? I was wondering how syncdataã > > might be useful for tying other BBS' together.ã > >ã > > SMBUTIL can be made to upload game data. getting it out is anotherã > > item.ã > >ã > > But if a javascript segment can be called to cull out messages for theã > > door (making large assumptions) or added functionality to smbutil,ã > > would be great.ã > ã > DM> Even if smbutil could extract a specific message, how would you knowã > DM> *which* message to extract?ã > ã > Well I was thinking that switches would tell what values to look for inã > a message.ã > ã > Let me just make up some for demonstration puposes.ã > ã > usage: smbutil [-opts] cmd <filespec.shd>ã > ã > cmd:ã > l[n] = list msgs starting at number nã > r[n] = read msgs starting at number nã > v[n] = view msg headers starting at number nã > i[f] = import msg from text file f (or use stdin)ã > e[f] = import e-mail from text file f (or use stdin)ã > n[f] = import netmail from text file f (or use stdin)ã > /m = export message from message baseã > /t = set 'To' to sort forã > /s = set 'subject' to sort forã > h = dump hash fileã > s = display msg base statusã > c = change msg base statusã > d = delete all msgsã > m = maintain msg base - delete old msgs and msgs over maxã > p[k] = pack msg base (k specifies minimum packable Kbytes)ã > opts:ã > f<s> = set 'from' user name for imported messageã > e<s> = set 'from' user number for imported messageã > ã > smbutil /m /tdoorgame /sweeknumber \sbbs\xtrn\doorgame\input.datããOkay, so /m would would always extract a single message? If so, wouldn't itãjust keep extracting the same message over and over?ã ã > > Of course you know I'm not a programmer, but is this function in theã > > SDK? I would think someone else would have sought out syncdata toã > > transport data before now.ã > ã > DM> A JS module would be the way to go. I'm not sure which SDK you'reã > DM> referring to. The XSDK does not include any message base functionality.ã > DM> The SMBLIB is available as a separate library for message base access,ã > DM> but a JS module would be much easier.ã > ã > Well could something highly configurable be written in baja/javascript?ããIn JavaScript, absolutely. See the NewsLink and ListServers modules asãexamples.ãã > // Pulls text from syncdata message baseã > // $Id: syncdata.js,v .12 2006/08/19 rswindell Exp $ã > // @format.tab-size 8, @format.use-tabs trueã > ã > load("sbbsdefs.js");ã > ã > // Available Command-line options:ã > //ã > // m indicates extractionã > // t sets 'To' field valueã > // s sets 'Subject' field valueã > // syncdata is the default message baseã > //ã > // syncdata.js /m /tdoorgame /sweeknumber \sbbs\xtrn\doorgame\input.datã > ã > P_OPENCLOSEããHuh?ãã digital manããSnapple "Real Fact" #53:ãThe average women consumes 6lbs of lipstick in her lifetime.ãNorco, CA WX: 93.9øF, 31% humidity, 0 mph WSW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to Death on Mon Aug 21 16:45:25 2006
    Re: Re: code exampleã By: Death to Digital Man on Sat Aug 19 2006 03:58 amãã > > Even if smbutil could extract a specific message, how would you know *whiã > > message to extract?ã > ã > Would it be possible to maybe set smbutil to scan for messages with aã > certain header?? Then if all the messages connected to the game wereã > under as certain header you could only extract those messages? Justã > throwing a bone out here.. =o)ããIt could. But then you'd just keep extrating the same message(s) everytime,ãunless they were deleted after extraction or you had some time of "highwaterãmark". In any case, it alls seems like a misapplication of smbutil and a jobãbetter suited for a script.ãã digital manããSnapple "Real Fact" #66:ãAmericans on average eat 18 acres of pizza a day.ãNorco, CA WX: 93.9øF, 31% humidity, 0 mph WSW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Finnigann@VERT/BNB to Digital Man on Mon Aug 21 21:39:00 2006
    With regards to the social ramifications; ã Digital Man wrote to Finnigann <=-ãã>ã > Well could something highly configurable be written in baja/javascript?ãã DM> In JavaScript, absolutely. See the NewsLink and ListServers modules asã DM> examples.ãã > // Pulls text from syncdata message baseã > // $Id: syncdata.js,v .12 2006/08/19 rswindell Exp $ã > // @format.tab-size 8, @format.use-tabs trueã >ã > load("sbbsdefs.js");ã >ã > // Available Command-line options:ã > //ã > // m indicates extractionã > // t sets 'To' field valueã > // s sets 'Subject' field valueã > // syncdata is the default message baseã > //ã > // syncdata.js /m /tdoorgame /sweeknumber \sbbs\xtrn\doorgame\input.datã >ã > P_OPENCLOSEãã DM> Huh?ã ã I said it was bedtime... (-:ãã oh, not a javascript word... opps.ãããã _ _ _ _ _ _ _ _ _ ã / \ / \ / \ / \ / \ / \ / \ / \ / \ ã ( F | i | n | n | i | g | a | n | n )ã \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ããã... The nice thing about standards is that there are so many to choose from.ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
  • From Finnigann@VERT/BNB to Digital Man on Mon Aug 21 22:04:00 2006
    With regards to the social ramifications; ã Digital Man wrote to Finnigann <=-ãã> >ã > > DM> I suppose I mispoke: you can *read* messages (interactively) withã > > DM> smbutil (using the 'r' command), but can't really "extract" messageã > > DM> (programatically). This could be done with small JS module however.ã > >ã > > DM> If I knew more about exactly what you're trying to accomplish, I migã > > DM> be able to help more.ã > >ã > > If you recall Jazzman's sports... game? I was wondering how syncdataã > > might be useful for tying other BBS' together.ã > >ã > > SMBUTIL can be made to upload game data. getting it out is anotherã > > item.ã > >ã > > But if a javascript segment can be called to cull out messages for theã > > door (making large assumptions) or added functionality to smbutil,ã > > would be great.ã >ã > DM> Even if smbutil could extract a specific message, how would you knowã > DM> *which* message to extract?ã >ã > Well I was thinking that switches would tell what values to look for inã > a message.ã >ã>ã > smbutil /m /tdoorgame /sweeknumber \sbbs\xtrn\doorgame\input.datãã DM> Okay, so /m would would always extract a single message? If so,ã DM> wouldn't it just keep extracting the same message over and over?ãã If smbutil could be made to work, it would read ALL messages with aã subject with a specific date or phrase 'week 1' 'week 2' etc. theã message would of course be addressed to 'Sportdoor'.ãã The door would have to be able to read the FROM: lineãã Parsing the body of the message would be the next chore.ãã I guess it would have to be carrefully formated to aide this task.ãã /*ã Possible choices:ã TEAM Abc Team Bcdã TEAM Cde Team Defã */ãã (this week)ã WINNERS:ã TEAM Bcdã TEAM Defãããã But SMBUTIL can't read messages based on any of those fields (From, To,ã Subject)ãã What am I doing, Jazzman has no doubt coded the whole thing up already.ããã > > Of course you know I'm not a programmer, but is this function in theã > > SDK? I would think someone else would have sought out syncdata toã > > transport data before now.ã >ã > DM> A JS module would be the way to go. I'm not sure which SDK you'reã > DM> referring to. The XSDK does not include any message base functionality.ã > DM> The SMBLIB is available as a separate library for message base access,ã > DM> but a JS module would be much easier.ã >ã > Well could something highly configurable be written in baja/javascript?ãã DM> In JavaScript, absolutely. See the NewsLink and ListServers modules asã DM> examples. ãã Can a JS be called from a baja program?ãã So, is there much use in a JS module to read messages from [syncdata]ã message base?ãã I mean is anyone with codeing skills interested?ãããã _ _ _ _ _ _ _ _ _ ã / \ / \ / \ / \ / \ / \ / \ / \ / \ ã ( F | i | n | n | i | g | a | n | n )ã \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ããã... Be polite. First listen to sermon, THEN eat missionary.ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
  • From Digital Man@VERT to Finnigann on Mon Aug 21 18:56:30 2006
    Re: Re: code exampleã By: Finnigann to Digital Man on Mon Aug 21 2006 10:04 pmãã > -=> With regards to the social ramifications;ã > Digital Man wrote to Finnigann <=-ã > ã > > >ã > > > DM> I suppose I mispoke: you can *read* messages (interactively) withã > > > DM> smbutil (using the 'r' command), but can't really "extract" messaã > > > DM> (programatically). This could be done with small JS module howeveã > > >ã > > > DM> If I knew more about exactly what you're trying to accomplish, I ã > > > DM> be able to help more.ã > > >ã > > > If you recall Jazzman's sports... game? I was wondering how syncdataã > > > might be useful for tying other BBS' together.ã > > >ã > > > SMBUTIL can be made to upload game data. getting it out is anotherã > > > item.ã > > >ã > > > But if a javascript segment can be called to cull out messages for thã > > > door (making large assumptions) or added functionality to smbutil,ã > > > would be great.ã > >ã > > DM> Even if smbutil could extract a specific message, how would you knowã > > DM> *which* message to extract?ã > >ã > > Well I was thinking that switches would tell what values to look for inã > > a message.ã > >ã > >ã > > smbutil /m /tdoorgame /sweeknumber \sbbs\xtrn\doorgame\input.datã > ã > DM> Okay, so /m would would always extract a single message? If so,ã > DM> wouldn't it just keep extracting the same message over and over?ã > ã > If smbutil could be made to work, it would read ALL messages with aã > subject with a specific date or phrase 'week 1' 'week 2' etc. theã > message would of course be addressed to 'Sportdoor'.ããSo it would put multiple messages into 'input.dat'?ãã > The door would have to be able to read the FROM: lineã > ã > Parsing the body of the message would be the next chore.ã > ã > I guess it would have to be carrefully formated to aide this task.ã > ã > /*ã > Possible choices:ã > TEAM Abc Team Bcdã > TEAM Cde Team Defã > */ã > ã > (this week)ã > WINNERS:ã > TEAM Bcdã > TEAM Defã > ã > ã > ã > But SMBUTIL can't read messages based on any of those fields (From, To,ã > Subject)ã > ã > What am I doing, Jazzman has no doubt coded the whole thing up already.ã > ã > ã > > > Of course you know I'm not a programmer, but is this function in theã > > > SDK? I would think someone else would have sought out syncdata toã > > > transport data before now.ã > >ã > > DM> A JS module would be the way to go. I'm not sure which SDK you'reã > > DM> referring to. The XSDK does not include any message base functionaliã > > DM> The SMBLIB is available as a separate library for message base accesã > > DM> but a JS module would be much easier.ã > >ã > > Well could something highly configurable be written in baja/javascript?ã > ã > DM> In JavaScript, absolutely. See the NewsLink and ListServers modules asã > DM> examples.ã > ã > Can a JS be called from a baja program?ããYes.ãã digital manããSnapple "Real Fact" #134:ãAn ant can lift 50 times its own weight. ãNorco, CA WX: 86.3øF, 39% humidity, 0 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Death@VERT/DARKNESS to Digital Man on Mon Aug 21 23:38:00 2006
    ã > It could. But then you'd just keep extrating the same message(s) everytime,ã > unless they were deleted after extraction or you had some time of "highwaterã > mark". In any case, it alls seems like a misapplication of smbutil and a jobã > better suited for a script.ããI agree that using JavaScript would be better. I was just wondering ifãsmbutil could do it, and you answered.. Thanks! =o)ããDeathãããã Home of DarkNetããã---ã þ Synchronet þ Darkness BBS - darkness.synchro.netã
  • From MRoblivious1bmf@VERT to Finnigann on Mon Aug 28 21:15:46 2006
    To: Finnigannã.,: This is something about Re: code example,ã Finnigann said it to Digital Man on Mon Aug 21 2006 10:04 pmã---------------------------------------------------------------------ã > If smbutil could be made to work, it would read ALL messages with aã > subject with a specific date or phrase 'week 1' 'week 2' etc. theã > message would of course be addressed to 'Sportdoor'.ãããhonestly, i dont think this is a feature that many people would want or use.ãit's best done with .js if at all.ãã > Can a JS be called from a baja program?ããyes.ããexec ?javsscriptnameããcheck out the synchronet documentation for more info on this, and other ãthings. and the whatsnew files, those are rich with information.ãã--- Synchronet 3.13a-Win32 NewsLink 1.84ã * eob - Racine, WisconSIN - telnet://eob.darktech.orgã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã