• SUBS.TXT file format

    From Xucaen@VERT/TIMEPORT to All on Friday, November 20, 2015 11:05:55
    Hi everyone. So, I imported my Areas.bbs for Fidonet, then I exported to SUBS.TXT. I am in the process of figuring out the file format. I googled "subs.txt site:synchro.net" but didn't find anything, other than a bug fix in v3.11 (synchro.net/docs/v311_new.html)

    I do not need to make any changes to my subs at this time, but I would like to know what each line in SUBS.TXT maps to for future reference.


    Here is a sample out of that SUBS.TXT:

    AFTERSHOCK
    AFTERSHOCK
    AFTERSHOCK
    AFTERSHO





    8028420




    1:322/764
    1000
    0
    0
    21

    ***END-OF-SUB***


    So I compared this to SCFG sub-board settings dialog, I can tell the first 4 lines are Long Name, Short Name, QWK Name and the second part of the Internal Code (my prefix is FIDO-)

    Next are 5 blank lines. I'm not sure what they map to.

    Next is "8028420". I have no clue what that is. I have not yet found that number in SCFG.

    Next are 4 blank lines, but I don't know what those lines map to.

    After that is my fidonet address, followed by the Maximum Messages count.

    The next 2 lines are set to 0 which I think map to Purge by Age and Duplicate Checking, which are both disabled in SCFG.

    Then, the last line is 21, which is the Pointer File Index under the Advanced Options.

    Depending on the success of this thread, I'll probably, eventually, set up a dummy sub area and play with the the file and see what shakes loose. ;-)

    Thanks!
    Take care everyone!!

    ---
    þ Synchronet þ The Time Portal - timeport.synchro.net:2112 - Celebrating the past from the futu
  • From Digital Man@VERT to Xucaen on Friday, November 20, 2015 16:37:57
    Re: SUBS.TXT file format
    By: Xucaen to All on Fri Nov 20 2015 11:05 am

    Hi everyone. So, I imported my Areas.bbs for Fidonet, then I exported to SUBS.TXT. I am in the process of figuring out the file format. I googled "subs.txt site:synchro.net" but didn't find anything, other than a bug fix in v3.11 (synchro.net/docs/v311_new.html)

    I do not need to make any changes to my subs at this time, but I would like to know what each line in SUBS.TXT maps to for future reference.


    Here is a sample out of that SUBS.TXT:

    AFTERSHOCK
    AFTERSHOCK
    AFTERSHOCK
    AFTERSHO





    8028420




    1:322/764
    1000
    0
    0
    21

    ***END-OF-SUB***


    So I compared this to SCFG sub-board settings dialog, I can tell the first 4 lines are Long Name, Short Name, QWK Name and the second part of the Internal Code (my prefix is FIDO-)

    Next are 5 blank lines. I'm not sure what they map to.

    Next is "8028420". I have no clue what that is. I have not yet found that number in SCFG.

    Next are 4 blank lines, but I don't know what those lines map to.

    After that is my fidonet address, followed by the Maximum Messages count.

    The next 2 lines are set to 0 which I think map to Purge by Age and Duplicate Checking, which are both disabled in SCFG.

    Then, the last line is 21, which is the Pointer File Index under the Advanced Options.

    Depending on the success of this thread, I'll probably, eventually, set up a dummy sub area and play with the the file and see what shakes loose. ;-)

    The source file is here: http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/sbbs3/scfg/scfgmsg.c

    The relevant code is this:

    fprintf(stream,"%s\r\n%s\r\n%s\r\n%s\r\n%s\r\n%s\r\n"
    "%s\r\n%s\r\n%s\r\n"
    ,cfg.sub[j]->lname
    ,cfg.sub[j]->sname
    ,cfg.sub[j]->qwkname
    ,cfg.sub[j]->code_suffix
    ,cfg.sub[j]->data_dir
    ,cfg.sub[j]->arstr
    ,cfg.sub[j]->read_arstr
    ,cfg.sub[j]->post_arstr
    ,cfg.sub[j]->op_arstr
    );

    fprintf(stream,"%"PRIX32"\r\n%s\r\n%s\r\n%s\r\n%s\r\n%s\r\n"
    ,cfg.sub[j]->misc
    ,cfg.sub[j]->tagline
    ,cfg.sub[j]->origline
    ,cfg.sub[j]->post_sem
    ,cfg.sub[j]->newsgroup
    ,smb_faddrtoa(&cfg.sub[j]->faddr,tmp)
    );

    fprintf(stream,"%"PRIu32"\r\n%"PRIu32"\r\n%u\r\n%u\r\n%s\r\n"
    ,cfg.sub[j]->maxmsgs
    ,cfg.sub[j]->maxcrcs
    ,cfg.sub[j]->maxage
    ,cfg.sub[j]->ptridx
    ,cfg.sub[j]->mod_arstr
    );

    fprintf(stream,"***END-OF-SUB***\r\n\r\n");

    digital man

    Synchronet "Real Fact" #7:
    Synchronet was originally intended as a replacement for WWIV BBS software. Norco, CA WX: 83.0øF, 17.0% humidity, 15 mph SSE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Digital Man@VERT to Xucaen on Friday, November 20, 2015 16:40:29
    Re: SUBS.TXT file format
    By: Xucaen to All on Fri Nov 20 2015 11:05 am

    Hi everyone. So, I imported my Areas.bbs for Fidonet, then I exported to SUBS.TXT.

    The more common approach would be to:

    1. Import an echolist (e.g. BACKBONE.NA) into SCFG->Message Areas->FidoNet.
    2. Prune to your liking (or do this before step 1 by editing the .NA file).
    3. Export the group to an SBBSecho-compatible AREAS.BBS file.

    digital man

    Synchronet "Real Fact" #46:
    The Synchronet Museum is online at http://wiki.synchro.net/history:museum: Norco, CA WX: 83.0øF, 17.0% humidity, 15 mph SSE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net