• Enhancements to msg_areas and MsgBase.

    From deon@VERT/ALTERANT to Digital Man on Sunday, April 24, 2022 16:10:43
    Hey DM,

    I have two requests if possible.

    The documentation for MsgBase.cfg indicates that the "index" (to sub_list) should be shown, but it doesnt appear. It shows grp_number, but not index. Is that an ommission? (If so, can it be added).

    eg: My PVT_TEST shows just these keys for cfg.

    "number",
    "grp_number",
    "grp_name",
    "code",
    "name",
    "description",
    "qwk_name",
    "area_tag",
    "newsgroup",
    "ars",
    "read_ars",
    "post_ars",
    "operator_ars",
    "moderated_ars",
    "data_dir",
    "fidonet_origin",
    "qwknet_tagline",
    "settings",
    "ptridx",
    "qwk_conf",
    "max_crcs",
    "max_msgs",
    "max_age",
    "print_mode",
    "print_mode_neg"


    Is it possible to include in msg_areas.sub and msg_areas.grp_list.sub_list the fido address if configured? That might be useful in MsgBase as well.

    Thanks.. :)


    ...ëîåï

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!
  • From Digital Man@VERT to deon on Sunday, April 24, 2022 10:10:08
    Re: Enhancements to msg_areas and MsgBase.
    By: deon to Digital Man on Sun Apr 24 2022 04:10 pm

    Hey DM,

    I have two requests if possible.

    The documentation for MsgBase.cfg indicates that the "index" (to sub_list) should be shown, but it doesnt appear. It shows grp_number, but not index.

    The "index" property of cfg is populated in the msg_area object but not instance of MsgBase, by design.

    Is that an ommission? (If so, can it be added).

    It was intentional (there's no array being generated when a MsgBase object is created).

    eg: My PVT_TEST shows just these keys for cfg.

    "number",
    "grp_number",
    "grp_name",
    "code",

    Yes, and you can use "code" as a index into msg_area.sub[] to get to the "cfg" of interest (that includes the "index" property).

    Is it possible to include in msg_areas.sub and msg_areas.grp_list.sub_list the fido address if configured? That might be useful in MsgBase as well.

    I'll add a issue/request to gitlab for that enhancement.
    --
    digital man (rob)

    Rush quote #53:
    He picks up scraps of conversation, radio and radiation .. Digital Man
    Norco, CA WX: 73.6øF, 21.0% humidity, 6 mph SW wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deon@VERT/ALTERANT to Digital Man on Monday, April 25, 2022 12:55:14
    Re: Enhancements to msg_areas and MsgBase.
    By: Digital Man to deon on Sun Apr 24 2022 10:10 am

    The documentation for MsgBase.cfg indicates that the "index" (to sub_list) should be shown, but it doesnt appear. It shows
    grp_number,
    but not index.

    The "index" property of cfg is populated in the msg_area object but not instance of MsgBase, by design.

    Is that an ommission? (If so, can it be added).

    It was intentional (there's no array being generated when a MsgBase object is created).

    OK, makes sense.

    I got it from here https://synchro.net/docs/jsobjs.html#MsgBase.cfg_object_properties, I guess it needs updating in case it throws somebody else off :)

    Yes, and you can use "code" as a index into msg_area.sub[] to get to the "cfg" of interest (that includes the "index" property).

    Ahh, OK that should work too, thanks. I'll have a play.

    I'll add a issue/request to gitlab for that enhancement.

    Thank you :)


    ...ëîåï

    ---
    þ Synchronet þ Alterant | an SBBS in Docker on Pi!