Subj : Re: code example
To : Digital Man
From : Finnigann
Date : 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" 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