• mail_send

    From Hax0r@HAX0RQWK to All on Monday, July 24, 2000 19:53:00
    the mail_send function reads in the recipient from the command string, but is is also possible to "feed" it a subject?

    ---
    ■ Synchronet ■ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From Digital Man to Hax0r on Tuesday, July 25, 2000 04:51:42
    RE: mail_send
    BY: Hax0r to All on Tue Jul 25 2000 02:53 am

    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.



    Rob

  • From Hax0r@HAX0RQWK to Digital Man on Tuesday, July 25, 2000 12:12:00
    RE: mail_send
    BY: Digital Man to Hax0r on Tue Jul 25 2000 11:51 am

    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 them.

    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 actually DON'T get the k_line mode. If I try the same operation with a string variable specified, k_line works just fine.

    Interestingly enough, GETLINE with no string variable and a length specified works just fine -- which is what I've been doing to circumvent the problem -- just thought that you might want to know :)

    ---
    ■ Synchronet ■ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From Amcleod to Hax0r on Wednesday, July 26, 2000 02:34:01
    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 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.

    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...
  • From Digital Man to Hax0r on Wednesday, July 26, 2000 04:42:52
    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 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.

    Yes, but if you use UNGETSTR to force keys into the keyboard buffer, they will be used for the next prompt (e.g. Title).

    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)....

    You may be able to do this with TEXT.DAT modifications possiblly.

    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.

    That's correct (i.e. not a bug). There are two forms of GETSTR, one that takes no arguments, and one that takes three arguments. If you use the latter form, you MUST specify a destination variable (string) name.

    Rob
  • From Hax0r@HAX0RQWK to Amcleod on Wednesday, July 26, 2000 16:47:00
    RE: mail_send
    BY: Amcleod to Hax0r on Wed Jul 26 2000 09:34 am

    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...

    ahh, nice trick -- i think I'll try it..

    thanks

    ---
    ■ Synchronet ■ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From Hax0r@HAX0RQWK to Digital Man on Wednesday, July 26, 2000 16:54:00
    RE: mail_send
    BY: Digital Man to Hax0r on Wed Jul 26 2000 11:42 am

    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 get nada).

    Heh, I know it would probably be alot of work, but could you *please* implement 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. I was really surpised to see a somewhat comprehensive file i/o support, but no looping structure.


    ---
    ■ Synchronet ■ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From Digital Man to Hax0r on Wednesday, July 26, 2000 19:02:16
    RE: mail_send
    BY: Hax0r to Digital Man on Wed Jul 26 2000 11:54 pm

    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.

    I (and other Baja programmers) have made do with the labels and gotos. Different syntax, same result. Check out the source to BullsEye for an example.

    Rob
  • From PistolGrip@WASTELND to Hax0r on Wednesday, July 26, 2000 22:31:00
    RE: mail_send
    BY: Hax0r to Digital Man on Wed Jul 26 2000 11:54 pm

    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.

    I find it pretty easy in baja. For example.

    fopen tmpfile O_RDONLY "%n..\somedir\somefile.asc"
    if_false
    print "\r\n\r\nError Loading File - SOMEFILE.ASC"
    return
    end_if

    :read_loop
    feof tmpfile
    if_true
    fclose tmpfile
    pause
    goto top
    end_if

    fread_line tmpfile str
    truncsp str
    printf "%s\r\n" str
    goto read_loop

    :top
    -----------------

    Pretty straight-forward.

    Dave


    ---
    ■ Synchronet ■ WasteLand BBS ■ telnet://wasteland.darktech.org
  • From Amcleod to Hax0r on Thursday, July 27, 2000 00:39:25
    RE: mail_send
    BY: Hax0r to Digital Man on Wed Jul 26 2000 11:54 pm

    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.

    On the face of it this sounds reasonable, but please consider:

    1) With the availability of IF_* and GOTO you can implement any type of loop
    you want.

    2) Most machines do not implement complex looping structures directly. The
    machine-language supports tests/jumps and complex control structures are
    implemented in high-level languages.

    Think of SBBS as a CPU implemented in software, and then think of BAJA as the machine-language of that CPU. What is needed is for someone (you?) to write a high-level SBBS language that implements complex control structures and other 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.
  • From Amcleod to PistolGrip on Thursday, July 27, 2000 00:42:04
    RE: mail_send
    BY: PistolGrip to Hax0r on Thu Jul 27 2000 05:31 am

    Pretty straight-forward.

    :) Just out of curiosity, is there any particular reason the label down there at the BOTTOM is called TOP ?
  • From PistolGrip@WASTELND to Amcleod on Thursday, July 27, 2000 10:14:00
    RE: mail_send
    BY: Amcleod to PistolGrip on Thu Jul 27 2000 07:42 am

    :) Just out of curiosity, is there any particular reason the label down the at the BOTTOM is called TOP ?

    Because normally that's where the actual program would start after displaying the ASC file. I pulled it out of the top of one of my mods :)

    Dave


    ---
    ■ Synchronet ■ WasteLand BBS ■ telnet://wasteland.darktech.org
  • From PistolGrip@WASTELND to Amcleod on Thursday, July 27, 2000 10:17:00
    RE: mail_send
    BY: Amcleod to Hax0r on Thu Jul 27 2000 07:39 am

    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.

    Dave


    ---
    ■ Synchronet ■ WasteLand BBS ■ telnet://wasteland.darktech.org
  • From Amcleod to PistolGrip on Thursday, July 27, 2000 09:26:56
    RE: mail_send
    BY: PistolGrip to Amcleod on Thu Jul 27 2000 05:17 pm

    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.

    1) What kind of complex programs? You mean writing a high-level compiler that produces BAJA as output? Well you _certainly_ wouldn't try to write it in BAJA but you don't have to use C/C++ although those languages would be fine. I have a very simple one here that I wrote (just to prove the point) using PERL. (I find that anything that boils down to text manipulation, I use perl these days, and this is a fine example. But other programmers might choose to use COBOL or APL or whatever they like best for the job!.)

    2) I disagree completely about BAJA not being for people who want or need to learn programming. Like it or not, you put two lines of BAJA together and YOU ARE PROGRAMMING! Okay, so maybe the language has been designed to be easy to learn and use, and is expressive in SBBS concepts directly, but it is still a 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.
  • From PistolGrip@WASTELND to Amcleod on Thursday, July 27, 2000 15:36:00
    RE: mail_send
    BY: Amcleod to PistolGrip on Thu Jul 27 2000 04:26 pm

    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!.)

    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 with 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 need to go with another Language. I don't think at this point it's worth Rob taking time off from coding the *important* stuff to make a few BAJA additions which can already be done very easily with the XSDK. So, you'd rather see Rob rehash some BAJA then continue working on the Linux version? <grin>

    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.

    Yeah sure, I guess you're programming, but you are not a programmer. You are taking pre-compiled functions that will only run *within* another Program. You are not creating *stand-alone* programs. Which to me is what I would consider programming. I'd say you're scripting if anything. BAJA is pretty powerful, but I don't think it will ever be everything everyone wants. If you need something more use a different language, period.

    Dave


    ---
    ■ Synchronet ■ WasteLand BBS ■ telnet://wasteland.darktech.org
  • From Hax0r@HAX0RQWK to Amcleod on Thursday, July 27, 2000 16:09:00
    RE: mail_send
    BY: Amcleod to Hax0r on Thu Jul 27 2000 07:39 am

    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.

    now that truely would be nice - functions, ah the power. I guess I have been spoiled by higher level languages and just expect there to be atleast some carry over. BAJA is very procedural, and much like a script language. In todays day any age, when you do oop --- its kinda hard to switch back gears to the procedural world.

    heh, i guess i'll have to live

    ---
    ■ Synchronet ■ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From Hax0r@HAX0RQWK to PistolGrip on Thursday, July 27, 2000 16:11:00
    RE: mail_send
    BY: PistolGrip to Amcleod on Thu Jul 27 2000 05:17 pm

    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.

    I never looked at the SDK, since that really is more overkill than I probably need -- although, I'm sure you can do some pretty neat stuff with it tho.

    ---
    ■ Synchronet ■ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From Amcleod to PistolGrip on Thursday, July 27, 2000 22:55:30
    RE: mail_send
    BY: PistolGrip to Amcleod on Thu Jul 27 2000 10:36 pm

    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>

    I think you have things backwards. I am saying that you DON'T NEED to add the familiar WHILE, FOR and DO loops to BAJA because they can be simulated using a combination of IF/GOTO instructions.

    But I was also saying that NO SYSTEM implements WHILE, FOR and DO loops directly. They leave it up to the COMPILER to implement these structures in a High-Level language which produces assembly language that implements these structures with test (IF) and branch (GOTO) instructions. Then the assembler reads this and produces the object code. Perhaps the compiler produces object code directly, but it is all the same in theory.

    You can't write SBBS Command Shells and Modules in (say) BASIC because there there is no compiler available that reads in BASIC and produces .BIN files for SBBS. Nor a compiler that reads in BASIC and produces BAJA source that can then be BAJA'd into .BIN files. But if you wanted to, you could _write_ such a BASIC-to-BAJA compiler, which would allow you to develop Command Shells and Modules in BASIC. Or if you prefer, you could produce a FORTRAN-to-BAJA compiler (shudder) or a PASCAL-to-BAJA compiler or whatever you wanted to. The you could develop Shells and Modules in PASCAL or FORTRAN too. In fact, you could start by designing a NEW language all together. Something sort of like BAJA but souped up to include WHILE/FOR/DO as well as subroutines with arguments, expression evaluation (SET MyInt = 3 * REClen + FieldOffset) or whatever you wanted. Then, once you had designed such a SuperBAJA language on paper, you could then write a SuperBAJA-to-BAJA compiler. Then you could use the SuperBAJA language to write a Shell, store it in an *.SBJ file, call the SuperBAJA program (that you wrote using C/C++/Pascal/Perl/Snobol/Bliss/etc) to convert the *.SBJ file to a *.SRC file, run BAJA.EXE to convert the *.SRC file into a *.BIN file, and there you are!

    I know this works because i) My studies of computer languages and compiler technology tell me that it does, and ii) I've ALREADY DONE IT in a very limited way, just to try it out. My program is called BAJAPP which is a play on words, because it is a BAJA Pre-Processor but jokingly, Baja Plus-Plus ;) The program was written in perl, reads *.BPP files and produces a temporary file called a *.PPI file which contains "pure" BAJA. The program then automatically calls BAJA.EXE on the *.PPI files, producing *.BIN files and finally deletes the *.PPI files. The upshot of which is that the *.BPP files become working *.BIN files without Rob having to stop work on the Linux version, to add WHILE/DO/FOR loops, etc.

    Of course, nobody is interested in programming Command Shells, Modules, etc in 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 actually 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.
  • From Amcleod to PistolGrip on Thursday, July 27, 2000 23:04:14
    RE: mail_send
    BY: PistolGrip to Amcleod on Thu Jul 27 2000 10:36 pm

    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.

    Oh, I see.

    10 REM SILLY TEMPERATURE CHART IN BASIC. RUN FROM *WITHIN* QBASIC
    20 FOR C = 0 TO 100 STEP 10: REM CALL 'FOR' PRECOMPILED FUNCTION
    30 LET F = C * 1.8 + 32: REM CALL 'LET' PRECOMPILED FUNCTION
    40 PRINT C, "=", F: REM CALL 'PRINT' PRECOMPILED FUNCTION
    50 NEXT C: REM CALL 'NEXT' PRECOMPILED FUNCTION
    60 END: REM CALL 'END' PRECOMPILED FUNCTION

    You're right! "BASIC PROGRAMMER" _is_ an oxymoron, isn't it? ;-)
  • From PistolGrip@WASTELND to Amcleod on Friday, July 28, 2000 07:21:00
    RE: mail_send
    BY: Amcleod to PistolGrip on Fri Jul 28 2000 05:55 am

    <big snip>

    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.

    Yes, I understand your point(s). And I agree that a SuperBAJA would only be of minmimal usefullness at this time. But, in the future there could be some possibilities opened up with the Linux version of SBBS. Maybe then the PERL BAJAPP could actually be very useful?? :)

    After going back and reading through this thread I realized I was replying to you and thinking you had posted Hax0r's comments :) All I was trying to get accross orignally though was that the While/Do/For functions can be easily accomplished using the XSDK and I didn't see any need for Rob to add them to BAJA.

    Dave


    ---
    ■ Synchronet ■ WasteLand BBS ■ telnet://wasteland.darktech.org
  • From PistolGrip@WASTELND to Amcleod on Friday, July 28, 2000 07:22:00
    RE: mail_send
    BY: Amcleod to PistolGrip on Fri Jul 28 2000 06:04 am

    You're right! "BASIC PROGRAMMER" _is_ an oxymoron, isn't it? ;-)

    Hehe... you said it not me .. LOL.. <grin>.. uh oh.. <ducking>

    Dave


    ---
    ■ Synchronet ■ WasteLand BBS ■ telnet://wasteland.darktech.org
  • From Amcleod to PistolGrip on Friday, July 28, 2000 08:45:21
    RE: mail_send
    BY: PistolGrip to Amcleod on Fri Jul 28 2000 02:21 pm

    Of course, nobody is interested in programming Command Shells, Modules, e 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 actu work on the BAJAPP program very much. Because after all, I am no longer SysOp myself, so there is no real motivation for me to do so.

    Yes, I understand your point(s). And I agree that a SuperBAJA would only be minmimal usefullness at this time. But, in the future there could be some possibilities opened up with the Linux version of SBBS. Maybe then the PERL BAJAPP could actually be very useful?? :)

    Well, one of the advantages of doing this in perl is that it should be 100% portable to Linux. Sure, you could do it in C/C++ as well, but then C/C++ isn't quite as flexible in chewing up a buncha source code and spitting it out in a different form as Perl is (IMHO). And we're not writing 25,000-line BAJA programs are we? So we don't need the improved efficiency of C/C++ to make it run fast enough...

    Some months ago I exchanged some messages with DM on the usefulness of a class of BAJA op. such as PEEK/POOK/EXEC_BUF and I think I convinced DM that these were useful additions to BAJA. If/when he adds them to the BBS there is every possibility that he will enhance the BAJA compiler to utilize them in fundamentally powerful new ways. And I will probably find my interest in the SuperBAJA idea reawakened too.

    Er... POKE, not POOK! :)
  • From Hax0r@HAX0RQWK to All on Saturday, July 29, 2000 08:42:00
    never mind about my rant regarding the mail_send. I figured out how I can do 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.



    ---
    ■ Synchronet ■ hax0r's palace - unknown-realm.dynip.com - you've been hax0r'd
  • From PistolGrip@WASTELND to Hax0r on Saturday, July 29, 2000 19:37:00
    RE: mail_send
    BY: Hax0r to All on Sat Jul 29 2000 03:42 pm

    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.

    Yes, I've done something like this years ago for a custom Feedback Routine. If I could only find my old source archive :(

    seems to work ok.

    Not the prettiest, but it works :)

    PistolGrip



    ---
    ■ Synchronet ■ WasteLand BBS ■ telnet://wasteland.darktech.org
  • From Frozen Fire@IMATRIX to Digital Man on Tuesday, May 14, 2002 12:46:00
    Is there a way to instert a title other than "re: feedback" using mail_send, or mail_send_feedback?

    Thanks!



    ---
    ■ Synchronet ■ The Impact Matrix - impactmatrix.dhs.org CALL TODAY!
  • From Digital Man to Frozen Fire on Tuesday, May 14, 2002 15:23:52
    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_send, 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
  • From Frozen Fire@IMATRIX to Digital Man on Tuesday, May 14, 2002 20:31:00
    Re: mail_send
    By: Digital Man to Frozen Fire on Tue May 14 2002 15:23:00

    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

    I was speaking more of an argument that could be passed... i.e., to ignore line 98, and pass along another string..

    Sorry to always ask the strange questions :)



    ---
    ■ Synchronet ■ The Impact Matrix - impactmatrix.dhs.org CALL TODAY!
  • From Pyro@DARKPRTY to Frozen Fire on Tuesday, May 14, 2002 20:45:00
    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 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 :)

    Don't ignore line 98, Change it to what you want it to say

    ─── Pyro ───


    ---
    ■ Synchronet ■ DarkParty Bbs (DarkParty.Com)
  • From PistolGrip@WASTELND to Pyro on Tuesday, May 14, 2002 22:41:00
    Re: mail_send
    By: Pyro to Frozen Fire on Tue May 14 2002 07:45 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

    Better yet, change it on the fly in a script.

    REPLACE_TEXT 98 "RE: Some Text"

    <WHAT EVER IN BETWEEN>

    REVERT_TEXT 98


    PistolGrip
    ----------

    ---
    ■ Synchronet ■ WasteLand BBS ■ telnet://wasteland-bbs.com
  • From Digital Man to Frozen Fire on Tuesday, May 14, 2002 23:23:31
    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 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..

    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
  • From Frozen Fire@IMATRIX to Pyro on Wednesday, May 15, 2002 12:19:00
    Re: mail_send
    By: Pyro to Frozen Fire on Tue May 14 2002 20:45:00

    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 ───


    hehehe I just rememebered, I can change the strings in baja.. Sorry about that...



    ---
    ■ Synchronet ■ The Impact Matrix - impactmatrix.dhs.org CALL TODAY!
  • From Frozen Fire@IMATRIX to Digital Man on Wednesday, May 15, 2002 12:21:00
    Re: mail_send
    By: Digital Man to Frozen Fire on Tue May 14 2002 23:23:00

    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).


    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
    heheh Rob, you are like a code search engine :)



    ---
    ■ Synchronet ■ The Impact Matrix - impactmatrix.dhs.org CALL TODAY!
  • From Angus Mcleod@ANJO to Frozen Fire on Wednesday, May 15, 2002 00:14:00
    Re: mail_send
    By: Frozen Fire to Digital Man on Tue May 14 2002 19:31:00

    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..

    Change 98, (REPLACE_TEXT) before you start. Change it back (REVERT_TEXT) after. Yucky, but might work for you.


    ---
    ■ Synchronet ■ Where we BAJA Rob into writing our modules. The ANJO BBS
  • From Hax0r@HAX0RQWK to Frozen Fire on Wednesday, May 15, 2002 22:56:00
    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 ignore 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.dat string you could prompt the user for whatever text they want to enter and then 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



    ---
    ■ Synchronet ■ .. hax0r's palace .. you've just been hax0r'd ..
  • From Frozen Fire@IMATRIX to Hax0r on Thursday, May 16, 2002 10:42:00
    Re: mail_send
    By: Hax0r to Frozen Fire on Wed May 15 2002 22:56:00

    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




    Its a string I was trying to force.. hehehehehe.... Its JUST not worth it.

    I have the syntax right, I have the code right... It just ain't workin :)



    ---
    ■ Synchronet ■ The Impact Matrix - impactmatrix.dhs.org CALL TODAY!