• Abilitiy to have robots that use *.msg files

    From Deucе@VERT to GitLab issue in main/sbbs on Thursday, October 30, 2025 15:19:09
    open https://gitlab.synchro.net/main/sbbs/-/issues/1001

    In The Clans, the IBBS "stuff" needs the *.msg file and the attached cl*.* file to properly process packets, so it needs the semaphore created after sbbsecho unpacks the msg file.

    Rather than a new feature, an option to have the robot not import the message and leave the file but still touch the semaphore would be great.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 15:36:39
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7809

    It looks like it would be a matter of adding an extra field to `struct robot`, adding a new key to set it, then having `import_netmail()` return some appropriate non-zero magic value when the robot name is matched instead of continuing at `sbbsecho.c:4700` and updating echocfg.c to allow setting it.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 15:43:13
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7811

    Too much magic here for me to hack it in I think.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 16:50:00
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7812

    Basically, I would configure like this:
    ```
    [robot:The Clans League BD]
    SemFile = /sbbs/data/clansibbs.now
    KeepMSG = yes
    ```

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 18:47:29
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7813

    I'll look at it.

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 19:37:22
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7815

    What if the netmail comes in packet form - you'd want it exported to .msg?

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 21:41:06
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7816

    Yes please.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 21:46:14
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7817

    Isn't that what already happens?

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 22:00:15
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7818

    So yeah, here's a log of what currently happens, which does create the MSG file, but won't touch a semaphore:

    ```
    2025-10-30 23:47:18 SBBSecho 3.30-FreeBSD master/1c123cf4a Oct 24 2025 Clang 19.1.7 (PID 17539) invoked with options: -ce
    2025-10-30 23:47:18 Configured: 1 archivers, 11 linked-nodes, 1 echolists 2025-10-30 23:47:18 NetMail directory: /home/bbsdev/sbbs/fido/netmail/ 2025-10-30 23:47:18 Secure Inbound directory: /home/bbsdev/sbbs/fido/inbsecure/ 2025-10-30 23:47:18 Non-secure Inbound directory: /home/bbsdev/sbbs/fido/inbound/
    2025-10-30 23:47:18 Outbound (BSO root) directory: /home/bbsdev/sbbs/fido/outbound
    2025-10-30 23:47:18 Read 183 areas from ../data/areas.bbs
    2025-10-30 23:47:18 Read 3 areas from ../data/badareas.lst
    2025-10-30 23:47:18 Read 140 echo statistics from ../data/echostats.ini 2025-10-30 23:47:18 Importing /home/bbsdev/sbbs/fido/inbsecure/fr2eobr2.pkt (type 2+, 0.3KB) from 885:1/3 to 885:1/1
    2025-10-30 23:47:18 Sanitized message attributes (LOCAL) at offset 111 of packet: /home/bbsdev/sbbs/fido/inbsecure/fr2eobr2.pkt
    2025-10-30 23:47:18 The Clans League BD (885:1/3) To: The Clans League BD (885:1/1) Unknown user
    2025-10-30 23:47:18 The Clans League BD (885:1/3) To: The Clans League BD (885:1/1) Exported to /home/bbsdev/sbbs/fido/netmail/1.msg
    2025-10-30 23:47:18 import_netmail() returned 2
    2025-10-30 23:47:18 Deleting /home/bbsdev/sbbs/fido/inbsecure/fr2eobr2.pkt (from line 6436)
    2025-10-30 23:47:18 /home/bbsdev/sbbs/fido/netmail/1.msg The Clans League BD (885:1/3) To: The Clans League BD (885:1/1) Unknown user
    2025-10-30 23:47:18 import_netmail(/home/bbsdev/sbbs/fido/netmail/1.msg) returned 2
    2025-10-30 23:47:18 Writing 3 areas to ../data/badareas.lst
    2025-10-30 23:47:18 Deleting /home/bbsdev/sbbs/ctrl/sbbsecho.bsy (from line 3231)
    2025-10-30 23:47:18 SBBSecho (PID 17539) exiting with error level 0, Packets(1 imported, 0 sent)
    ```

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 22:01:26
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7819

    Ah, I see, it exports *after* the Unknown user thing... so yeah.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Thursday, October 30, 2025 22:03:14
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7819

    Ah, I see, it exports *after* the Unknown user thing... so yeah, it would need to call `pkt_to_msg()` before returning.

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Friday, October 31, 2025 19:09:20
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7821

    So reading the echocfg help page for robot configuration, it says:
    If the NetMail message has the In-Transit attribute flag set, it
    will not be exported by SBBSecho back into a stored message (*.msg)
    file. Therefore, it is recommended to include the In-Transit attribute
    flag (0x20) in the Robot's Attributes value if the Robot (e.g. script)
    is going to expect the message to be in the mail base.

    This implies that so long as the in-transit flag is *not* set in the Robot's Attributes value (the default is 0, so not set is the default), the message should be exported back from the mail base to .msg format when the export_netmail() function is executed. Is that not occurring for you?

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Friday, October 31, 2025 19:13:39
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7822

    I could make an option to *skip* the mail base phase (since it does seem unnecessary in your use case). But it does seem it should be happening now anyway, so I'm curious why it wouldn't be.

    ---
    � Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Friday, October 31, 2025 22:26:28
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7826

    It's returning zero, so it's deleting the MSG file before it's touching the semaphore. :laughing:

    ```
    2025-11-01 05:15:38 SBBSecho 3.31-FreeBSD master/320d6a775 Nov 01 2025 Clang 19.1.7 (PID 46916) invoked with options: -ce
    2025-11-01 05:15:38 Configured: 1 archivers, 11 linked-nodes, 0 echolists 2025-11-01 05:15:38 NetMail directory: /sbbs/fido/netmail/
    2025-11-01 05:15:38 Secure Inbound directory: /sbbs/fido/inbsecure/
    2025-11-01 05:15:38 Non-secure Inbound directory: /sbbs/fido/inbound/ 2025-11-01 05:15:38 Outbound (BSO root) directory: /sbbs/fido/outbound 2025-11-01 05:15:38 Read 12 areas from ../data/areas.bbs
    2025-11-01 05:15:38 Read 6 areas from ../data/badareas.lst
    2025-11-01 05:15:38 Read 12 echo statistics from ../data/echostats.ini 2025-11-01 05:15:38 Importing /sbbs/fido/inbsecure/a9dguqf9.pkt (type 2+, 0.3KB) from 885:1/1 to 885:1/3
    2025-11-01 05:15:38 Sanitized message attributes (LOCAL) at offset 111 of packet: /sbbs/fido/inbsecure/a9dguqf9.pkt
    2025-11-01 05:15:38 The Clans League BD (885:1/1) To: The Clans League BD (885:1/3) NetMail received for robot: The Clans League BD
    2025-11-01 05:15:38 The Clans League BD (885:1/1) To: The Clans League BD (885:1/3) Exported to /sbbs/fido/netmail/1.msg
    2025-11-01 05:15:38 Deleting /sbbs/fido/inbsecure/a9dguqf9.pkt (from line 6452) 2025-11-01 05:15:38 /sbbs/fido/netmail/1.msg The Clans League BD (885:1/1) To: The Clans League BD (885:1/3) NetMail received for robot: The Clans League BD
    2025-11-01 05:15:38 Deleting /sbbs/fido/netmail/1.msg (from line 7139) 2025-11-01 05:15:38 Touching robot semfile: /sbbs/data/clansibbs.now
    2025-11-01 05:15:38 Writing 6 areas to ../data/badareas.lst
    2025-11-01 05:15:38 Deleting /sbbs/ctrl/sbbsecho.bsy (from line 3231) 2025-11-01 05:15:38 SBBSecho (PID 46916) exiting with error level 0, Packets(1 imported, 0 sent)
    ```

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Friday, October 31, 2025 22:32:02
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7827

    Adding a new `IMPORT_ROBOT_MSG = 14` and returning *that* does work though...

    ```
    2025-11-01 05:30:39 SBBSecho 3.31-FreeBSD master/320d6a775 Nov 01 2025 Clang 19.1.7 (PID 47735) invoked with options: -ce
    2025-11-01 05:30:39 Configured: 1 archivers, 11 linked-nodes, 0 echolists 2025-11-01 05:30:39 NetMail directory: /sbbs/fido/netmail/
    2025-11-01 05:30:39 Secure Inbound directory: /sbbs/fido/inbsecure/
    2025-11-01 05:30:39 Non-secure Inbound directory: /sbbs/fido/inbound/ 2025-11-01 05:30:39 Outbound (BSO root) directory: /sbbs/fido/outbound 2025-11-01 05:30:39 Read 12 areas from ../data/areas.bbs
    2025-11-01 05:30:39 Read 6 areas from ../data/badareas.lst
    2025-11-01 05:30:39 Read 12 echo statistics from ../data/echostats.ini 2025-11-01 05:30:39 Importing /sbbs/fido/inbsecure/oey5pvuq.pkt (type 2+, 0.3KB) from 885:1/1 to 885:1/3
    2025-11-01 05:30:39 Sanitized message attributes (LOCAL) at offset 111 of packet: /sbbs/fido/inbsecure/oey5pvuq.pkt
    2025-11-01 05:30:39 The Clans League BD (885:1/1) To: The Clans League BD (885:1/3) NetMail received for robot: The Clans League BD
    2025-11-01 05:30:39 The Clans League BD (885:1/1) To: The Clans League BD (885:1/3) Exported to /sbbs/fido/netmail/1.msg
    2025-11-01 05:30:39 import_netmail() returned 14
    2025-11-01 05:30:39 Deleting /sbbs/fido/inbsecure/oey5pvuq.pkt (from line 6453) 2025-11-01 05:30:39 /sbbs/fido/netmail/1.msg The Clans League BD (885:1/1) To: The Clans League BD (885:1/3) NetMail received for robot: The Clans League BD
    2025-11-01 05:30:39 import_netmail(/sbbs/fido/netmail/1.msg) returned 14 2025-11-01 05:30:39 Touching robot semfile: /sbbs/data/clansibbs.now
    2025-11-01 05:30:39 Writing 6 areas to ../data/badareas.lst
    2025-11-01 05:30:39 Deleting /sbbs/ctrl/sbbsecho.bsy (from line 3231) 2025-11-01 05:30:39 SBBSecho (PID 47735) exiting with error level 0, Packets(1 imported, 0 sent)
    ```

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab issue in main/sbbs on Friday, October 31, 2025 23:25:29
    close https://gitlab.synchro.net/main/sbbs/-/issues/1001

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to GitLab note in main/sbbs on Friday, October 31, 2025 23:25:29
    https://gitlab.synchro.net/main/sbbs/-/issues/1001#note_7828

    Appears to be working perfectly now, thanks!

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