• "Read your mail?" text message mistery

    From Ragnarok@VERT/DOCKSUD to DOVE-Net.Synchronet_Discussion on Monday, June 03, 2019 01:09:12
    After logon process i have the "Read your mail?" question (i'ts a
    yes/no prompt) when have waiting mail.

    I modify the text.dat on 362 ReadYourMailNowQ with custom text also i
    have modified the yes/no for Si/No including at mods/noyesbar.src and mods/yesnobar.src

    Leer tu correo ahora" 362 ReadYourMailNowQ
    "@EXEC:yesnobar@" 559 YesNoQuestion
    "Si " 560 Yes
    "No" 561 No
    "@EXEC:noyesbar@" 562 NoYesQuestion

    i do a test case in javascript and work this fine. Using the S and N
    characters

    a = console.noyes("test 1");
    b = console.yesno("test 2");

    ;EXEC ?test.js

    [û] test 1? No
    [û] test 2? Si


    but on logon prompt still have the default message. i use ddMsgreader
    but i can find if related

    also, try to read the sbbs code at logon.cpp and sems to use the msg
    from text.dat

    if(text[ReadYourMailNowQ][0] && mailw) {
    if(yesno(text[ReadYourMailNowQ]))
    readmail(useron.number,MAIL_YOUR);
    }

    Where does it come from ?
    Where else can I search? Maybe just stop working at some upgrade. Maybe
    a regression?

    I'm lost. =|

    Saludos!

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar
  • From Ragnarok@VERT/DOCKSUD to Ragnarok on Monday, June 03, 2019 01:12:33
    El 3/6/19 a las 01:09, Ragnarok escribió:
    After logon process i have the "Read your mail?" question (i'ts a
    yes/no prompt) when have waiting mail.

    I modify the text.dat on 362 ReadYourMailNowQ with custom text also i
    have modified the yes/no for Si/No including at mods/noyesbar.src and mods/yesnobar.src

    Leer tu correo ahora" 362 ReadYourMailNowQ
    ^^^^
    Just for notice that the quote lost is a paste error

    the text.dat are correct quoted:

    "Leer tu correo ahora" 362 ReadYourMailNowQ

    Saludos!

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - http://bbs.docksud.com.ar - telnet://bbs.docksud.com.ar
  • From Digital Man@VERT to Ragnarok on Monday, June 03, 2019 01:01:22
    Re: "Read your mail?" text message mistery
    By: Ragnarok to DOVE-Net.Synchronet_Discussion on Mon Jun 03 2019 01:09 am

    After logon process i have the "Read your mail?" question (i'ts a
    yes/no prompt) when have waiting mail.

    I modify the text.dat on 362 ReadYourMailNowQ with custom text also i
    have modified the yes/no for Si/No including at mods/noyesbar.src and mods/yesnobar.src

    Leer tu correo ahora" 362 ReadYourMailNowQ
    "@EXEC:yesnobar@" 559 YesNoQuestion
    "Si " 560 Yes
    "No" 561 No
    "@EXEC:noyesbar@" 562 NoYesQuestion

    i do a test case in javascript and work this fine. Using the S and N characters

    a = console.noyes("test 1");
    b = console.yesno("test 2");

    ;EXEC ?test.js

    [û] test 1? No
    [û] test 2? Si


    but on logon prompt still have the default message.

    Try (in JavaScript), print(bbs.text(ReadYourMailNowQ)) - what does it print?

    i use ddMsgreade but i can find if related

    I can't imagine how it'd be related unless it has its own prompt built in. A simply grep/search through its files could tell you.

    also, try to read the sbbs code at logon.cpp and sems to use the msg
    from text.dat

    if(text[ReadYourMailNowQ][0] && mailw) {
    if(yesno(text[ReadYourMailNowQ]))
    readmail(useron.number,MAIL_YOUR);
    }

    Where does it come from ?

    The logon.cpp text comes from the text.dat. If the string is missing, then you'll get the default from sbbs.dll (or libsbbs.so on *nix).

    Where else can I search? Maybe just stop working at some upgrade. Maybe
    a regression?

    I'm lost. =|

    Maybe you have a script displaying the text? <shrug>

    digital man

    Synchronet "Real Fact" #54:
    The Synchronet source code consists of over 500,000 lines of C and C++.
    Norco, CA WX: 56.7øF, 91.0% humidity, 4 mph E wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net