the mail_send function reads in the recipient from the command string, but i is also possible to "feed" it a subject?
Possibly using UNGETSTR.
Possibly using UNGETSTR.
I'm not quite sure how I could use that to feed the title prompt since when mail_send is called, I have no control over what happens in Baja -- I am assuming your internal mail_send routine is what forces the Title: prompt.
Possibly using UNGETSTR.
I'm not quite sure how I could use that to feed the title prompt since when mail_send is called, I have no control over what happens in Baja -- I am assuming your internal mail_send routine is what forces the Title: prompt.
It would be real nice (although I'm sure alot of work for you) to be able to modify or atleast inheret from the internal functions so one could modify th
I would like to bypass the default Synchronet new message prompting all together, and create my own "To:" and "From:" prompts (nicely laid out in an ANSI drawn box of course)....
Also, this might be potentially a bug...
when I use GETSTR with no string variable, with a max len and k_line i actua DON'T get the k_line mode. If I try the same operation with a string variab specified, k_line works just fine.
RE: mail_send
BY: Hax0r to Digital Man on Tue Jul 25 2000 07:12 pm
Possibly using UNGETSTR.
I'm not quite sure how I could use that to feed the title prompt since wh mail_send is called, I have no control over what happens in Baja -- I am assuming your internal mail_send routine is what forces the Title: prompt
I've not done this for a long time but...
Try UNGETSTRing the title you want to use, and then call MAIL_SEND. When MAIL_SEND tries to read the title, it will see what ever is in the input buffer, which should be what you UNGETSTRed.
Might work...
I would like to bypass the default Synchronet new message prompting all together, and create my own "To:" and "From:" prompts (nicely laid out in ANSI drawn box of course)....
You may be able to do this with TEXT.DAT modifications possiblly.
Yeah, some of it -- I've edited my TEXT.DAT and have some screen positioning stuff in the actual text string. I also tend to do alot of REPLACE_TEXT / LOAD_TEXT in my baja (especially all of the system info, during the Logon Event, as that gets displayed if the text strings are set -- otherwise you g nada).
Heh, I know it would probably be alot of work, but could you *please* implem some sort of looping structure in the next version of baja? a for loop, do loop, whatever.....something. It would just make file I/O that much easier. was really surpised to see a somewhat comprehensive file i/o support, but no looping structure.
Heh, I know it would probably be alot of work, but could you *please* implem some sort of looping structure in the next version of baja? a for loop, do loop, whatever.....something. It would just make file I/O that much easier. was really surpised to see a somewhat comprehensive file i/o support, but no looping structure.
Heh, I know it would probably be alot of work, but could you *please* implem some sort of looping structure in the next version of baja? a for loop, do loop, whatever.....something. It would just make file I/O that much easier. was really surpised to see a somewhat comprehensive file i/o support, but no looping structure.
Pretty straight-forward.
:) Just out of curiosity, is there any particular reason the label down the at the BOTTOM is called TOP ?
Think of SBBS as a CPU implemented in software, and then think of BAJA as th machine-language of that CPU. What is needed is for someone (you?) to write high-level SBBS language that implements complex control structures and othe desireable features such as passing arguments to subroutines and returning values from functions. That SBBS HLL could produce BAJA source code, or perhaps generate .BIN files directly.
Think of SBBS as a CPU implemented in software, and then think of BAJA as machine-language of that CPU. What is needed is for someone (you?) to wr high-level SBBS language that implements complex control structures and o desireable features such as passing arguments to subroutines and returnin values from functions. That SBBS HLL could produce BAJA source code, or perhaps generate .BIN files directly.
If you're looking to do these kind of complex programs then I think you'd better learn C/C++ and go with the XSDK that Rob's already coded. Why code everything again in BAJA? BAJA is made for people who don't want or need to learn programming.
If you're looking to do these kind of complex programs then I think you'd better learn C/C++ and go with the XSDK that Rob's already coded. Why co everything again in BAJA? BAJA is made for people who don't want or need learn programming.
1) What kind of complex programs? You mean writing a high-level compiler t produces BAJA as output? Well you _certainly_ wouldn't try to write it in B but you don't have to use C/C++ although those languages would be fine. I h a very simple one here that I wrote (just to prove the point) using PERL. ( find that anything that boils down to text manipulation, I use perl these da and this is a fine example. But other programmers might choose to use COBOL APL or whatever they like best for the job!.)
2) I disagree completely about BAJA not being for people who want or need t learn programming. Like it or not, you put two lines of BAJA together and Y ARE PROGRAMMING! Okay, so maybe the language has been designed to be easy t learn and use, and is expressive in SBBS concepts directly, but it is still language that has to be learned to at least _some_ degree before it can be used. And once you start using it, for no matter how small a task, you are programming in the BAJA language.
Think of SBBS as a CPU implemented in software, and then think of BAJA as th machine-language of that CPU. What is needed is for someone (you?) to write high-level SBBS language that implements complex control structures and othe desireable features such as passing arguments to subroutines and returning values from functions. That SBBS HLL could produce BAJA source code, or perhaps generate .BIN files directly.
If you're looking to do these kind of complex programs then I think you'd better learn C/C++ and go with the XSDK that Rob's already coded. Why code everything again in BAJA? BAJA is made for people who don't want or need to learn programming.
Umm.. sure, but what you were talking about was writing programs *for* Synchronet. Sure, PERL is a great language, but what does it have to do wit SBBS at this point? Nothing. What you were asking was for file read/write looping functions which can be done farily easily in BAJA, it's not the most efficient but it works quite well. If you want somethign more than you'll n to go with another Language. I don't think at this point it's worth Rob tak time off from coding the *important* stuff to make a few BAJA additions whic can already be done very easily with the XSDK. So, you'd rather see Rob reh some BAJA then continue working on the Linux version? <grin>
Yeah sure, I guess you're programming, but you are not a programmer. You ar taking pre-compiled functions that will only run *within* another Program.
Of course, nobody is interested in programming Command Shells, Modules, etc the SuperBAJA language (or whatever it's name is) with WHILE/DO/FOR loops, subroutine calls, arrays, records, structures, etc, etc. So I don't actuall work on the BAJAPP program very much. Because after all, I am no longer a SysOp myself, so there is no real motivation for me to do so.
You're right! "BASIC PROGRAMMER" _is_ an oxymoron, isn't it? ;-)
never mind about my rant regarding the mail_send. I figured out how I can d it. I ended up replacing the TEXT.DAT string for Title: to a baja mod which prompts for the title and does a ungetstr.
seems to work ok.
Is there a way to instert a title other than "re: feedback" using mail_send, mail_send_feedback?
Re: mail_send
By: Frozen Fire to Digital Man on Tue May 14 2002 11:46 am
Is there a way to instert a title other than "re: feedback" using mail_se mail_send_feedback?
The "RE: Feedback" portion of the message is not the "title". That text is configured in the ctrl/text.dat (line 98).
digital man
The "RE: Feedback" portion of the message is not the "title". That text i configured in the ctrl/text.dat (line 98).I was speaking more of an argument that could be passed... i.e., to ignore l 98, and pass along another string..
Sorry to always ask the strange questions :)
The "RE: Feedback" portion of the message is not the "title". That tex configured in the ctrl/text.dat (line 98).
I was speaking more of an argument that could be passed... i.e., to ignor 98, and pass along another string..
Sorry to always ask the strange questions :)
Don't ignore line 98, Change it to what you want it to say
Is there a way to instert a title other than "re: feedback" using mail mail_send_feedback?
The "RE: Feedback" portion of the message is not the "title". That text i configured in the ctrl/text.dat (line 98).
I was speaking more of an argument that could be passed... i.e., to ignore l 98, and pass along another string..
Re: mail_send
By: Frozen Fire to Digital Man on Tue May 14 2002 08:31 pm
The "RE: Feedback" portion of the message is not the "title". That tex configured in the ctrl/text.dat (line 98).I was speaking more of an argument that could be passed... i.e., to ignor 98, and pass along another string..
Sorry to always ask the strange questions :)
Don't ignore line 98, Change it to what you want it to say
ÄÄÄ Pyro ÄÄÄ
Re: mail_send
By: Frozen Fire to Digital Man on Tue May 14 2002 07:31 pm
Is there a way to instert a title other than "re: feedback" using m mail_send_feedback?
The "RE: Feedback" portion of the message is not the "title". That tex configured in the ctrl/text.dat (line 98).
heheh Rob, you are like a code search engine :)I was speaking more of an argument that could be passed... i.e., to ignor 98, and pass along another string..
Oh, why didn't you say so? :-)
This can't be done with Baja, but it can be done with the JavaScript bbs.email() function. Just pass the string you want... example:
bbs.email(1 /* usernumber */, "This will be part of the text");
digital man
The "RE: Feedback" portion of the message is not the "title". That text i configured in the ctrl/text.dat (line 98).
I was speaking more of an argument that could be passed... i.e., to ignore l 98, and pass along another string..
I was speaking more of an argument that could be passed... i.e., to ignore 98, and pass along another string..
Sorry to always ask the strange questions :)
RE: mail_send
BY: Frozen Fire to Digital Man on Tue May 14 2002 07:31 pm
I was speaking more of an argument that could be passed... i.e., to ignor 98, and pass along another string..
Sorry to always ask the strange questions :)
well, if the Re:Feedback is what you are looking to change, and its a text.d string you could prompt the user for whatever text they want to enter and th set it with baja, then revery back to the text.dat original definition with baja. i do this all over the place with various strings
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 131:06:53 |
Calls: | 377 |
Calls today: | 2 |
Files: | 2 |
Messages: | 38,904 |