• src/smblib/smbstr.c

    From rswindell@VERT to CVS commit on Sun Dec 6 23:33:18 2015
    src/smblib smbstr.c 1.23 1.24
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv2065

    Modified Files:
    smbstr.c
    Log Message:
    Attempt to get rid fo gcc warnings about "enumeration value not handled in switch" by creating a default case.


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Thu Apr 14 23:01:10 2016
    src/smblib smbstr.c 1.24 1.25
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv15191

    Modified Files:
    smbstr.c
    Log Message:
    Lesson learned from sbbsecho (rechocfg.c) atofaddr() implementation:
    stop parsing at first white-space char.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net
  • From Accession@VERT/PHARCYDE to rswindell on Fri Apr 15 01:47:05 2016
    Hello rswindell,

    On 14 Apr 16 19:01, rswindell wrote to CVS commit:

    src/smblib smbstr.c 1.24 1.25
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv15191

    Modified Files:
    smbstr.c
    Log Message:
    Lesson learned from sbbsecho (rechocfg.c) atofaddr() implementation:
    stop parsing at first white-space char.

    This one has nothing to do with me, but.. I upgraded just now and set the option for echomail notifications off. I only have one question in the process:

    Q: Echocfg changes still does NOT need a restart of Synchronet.. correct?

    Regards,
    Nick

    --- GoldED+/LNX 1.1.5-b20160322
    ■ Synchronet ■ thePharcyde_ telnet://bbs.pharcyde.org (Wisconsin)
  • From Digital Man@VERT to Accession on Fri Apr 15 02:11:26 2016
    Re: Re: src/smblib/smbstr.c
    By: Accession to rswindell on Thu Apr 14 2016 09:47 pm

    Q: Echocfg changes still does NOT need a restart of Synchronet.. correct?

    Correct.

    digital man

    Synchronet "Real Fact" #40:
    Synchronet's cross-platform library is called XPDEV (named before Windows XP). Norco, CA WX: 57.6°F, 79.0% humidity, 1 mph SE wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Wed Nov 16 07:53:54 2016
    src/smblib smbstr.c 1.25 1.26
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv31970

    Modified Files:
    smbstr.c
    Log Message:
    Add SMB_POLL_ANSWER to the string representations supported by smb_hfieldtype()


    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Wed Mar 14 02:55:32 2018
    src/smblib smbstr.c 1.28 1.29
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv23656

    Modified Files:
    smbstr.c
    Log Message:
    smb_netaddr_type() will now recognize an FTN-style address without a
    "user@" prefix.



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Oct 3 01:25:10 2018
    src/smblib smbstr.c 1.29 1.30
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/tmp/cvs-serv15285

    Modified Files:
    smbstr.c
    Log Message:
    Added support for new "Tags" header field type to smb_hfieldtype(). smb_nettype() now return "FidoNet" instead of "Fidonet" for NET_FIDO
    (for not particularly good reason).



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Paul Hayton@VERT to rswindell on Thu Oct 4 01:51:20 2018
    On 10/02/18, rswindell pondered and said...

    Added support for new "Tags" header field type to smb_hfieldtype(). smb_nettype() now return "FidoNet" instead of "Fidonet" for NET_FIDO
    (for not particularly good reason).

    Heh could be some OtherNet influences seeping in Rob :)

    --- Mystic BBS v1.12 A39 2018/04/21 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (3:770/100)
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Mar 13 04:20:32 2019
    src/smblib smbstr.c 1.32 1.33
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/home/rswindell/sbbs/src/smblib

    Modified Files:
    smbstr.c
    Log Message:
    smb_netaddr_type() (exposed via JS as netaddr_type()) change:
    prior to rev 1.29 of this file (committed almost exactly one year ago), when called with any string that did not include an '@', would return NET_NONE (0). After rev 1.29, most strings that did not include an '@' would cause the function to return NET_QWK (4) - this was not intentional. The intention was that FidoNet addresses without an '@' would cause this function to return NET_FIDO (2) and I don't exactly remember why that change was made, but unfortunately, it wasn't made very well, so other invalid addresses would be detected as NET_QWK or NET_INTERNET or even NET_UNKNOWN.
    So before and after this commit:
    "" was NET_UNKNOWN, now NET_NONE
    "1" was NET_FIDO, now NET_FIDO
    "1x" was NET_INTERNET, now NET_NONE
    "1:103" was NET_FIDO, now NET_FIDO (this could use some work)
    "x" was NET_QWK, now NET_NONE



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Mar 13 05:43:39 2019
    src/smblib smbstr.c 1.33 1.34
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/home/rswindell/sbbs/src/smblib

    Modified Files:
    smbstr.c
    Log Message:
    More strict FidoNet address detection (e.g. so IPv6 addresses aren't
    detected as net_type NET_FIDO).



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon May 25 16:17:06 2020
    src/smblib smbstr.c 1.37 1.38
    Update of /cvsroot/sbbs/src/smblib
    In directory cvs:/home/rswindell/sbbs/src/smblib

    Modified Files:
    smbstr.c
    Log Message:
    strlcpy() is not currently supported in the Linux build (needs -lbsd).
    Switch to strncpy().



    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Mar 2 01:11:32 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/1ad07164bb3a4da28086ec3b
    Modified Files:
    src/smblib/smbstr.c
    Log Message:
    Better automatic network address type detection

    smb_netaddr_type():
    - if passed NULL or a string that begins with whitespace, now returns NET_NONE. - if passed a string that begins with '@', now returns NET_UNKNOWN.
    - if the user.name portion of an otherwise value Internet email address
    contains a space, now returns NET_NONE.

    smb_get_net_type_by_addr()
    - if passed a string that begins with '@', now returns NET_UNKNOWN.
    - if passed a string with space following '@', will now return NET_UNKNOWN.
    - if passed a string without a dot following '@', will never return NET_INTERNET.

    Unrelated change: Add the missing FILE attribute to smb_msgattrstr()

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