Subj : Re: code example
To   : Finnigann
From : Digital Man
Date : Mon Aug 21 2006 06:56 pm

 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 � telnet://vert.synchro.net