Can anyone post some baja code for extracting messages from the message
data base. sort of the opposite of smbutl (i cmd)
With regards to the social ramifications;Digital Man wrote to Finnigann <=-
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.
With regards to the social ramifications;Digital Man wrote to Finnigann <=-
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.
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.
With regards to the social ramifications;Digital Man wrote to Finnigann <=-
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 <=-
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.
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.
With regards to the social ramifications;Digital Man wrote to Finnigann <=-
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 <=-
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 messa
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 b 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.
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.
With regards to the social ramifications;Digital Man wrote to Finnigann <=-
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 <=-
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 <=-
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 messa
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 b 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.
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.
Even if smbutil could extract a specific message, how would you know *which* message to extract?
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?
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)
With regards to the social ramifications;Digital Man wrote to Finnigann <=-
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 <=-
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 <=-
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 me
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 dat 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
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 mig 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?
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.
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.
Well could something highly configurable be written in baja/javascript?
// 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
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)
With regards to the social ramifications;Digital Man wrote to Finnigann <=-
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?
With regards to the social ramifications;Digital Man wrote to Finnigann <=-
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 mig 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?
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
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.
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.
Well could something highly configurable be written in baja/javascript?
In JavaScript, absolutely. See the NewsLink and ListServers modules as examples.
With regards to the social ramifications;Digital Man wrote to Finnigann <=-
I suppose I mispoke: you can *read* messages (interactively) with smbutil (using the 'r' command), but can't really "extract" messa (programatically). This could be done with small JS module howeve
If I knew more about exactly what you're trying to accomplish, I 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.
Even if smbutil could extract a specific message, how would you know *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
Okay, so /m would would always extract a single message? If so, 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.
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 functionali The SMBLIB is available as a separate library for message base acces 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.
Can a JS be called from a baja program?
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.
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'.
Can a JS be called from a baja program?
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 96 |
Nodes: | 16 (0 / 16) |
Uptime: | 05:02:34 |
Calls: | 4,635 |
Calls today: | 8 |
Files: | 8,491 |
Messages: | 348,358 |