• src/sbbs3/netmail.cpp scfglib.h scfglib1.c

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Mon Oct 10 15:18:19 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/641747f6f33586b2d27f3b6a
    Modified Files:
    src/sbbs3/netmail.cpp scfglib.h scfglib1.c
    Log Message:
    Use nearest-zone matching for source FTN address when replying to netmail

    Rather than only matching exact zone numbers as a final "nearest" address search, use a "nearest zone" matching algorithm ("nearest" being the most mathematically near). This way, replying to netmail from a zone 2 address
    would always match a zone 1 source address, regardless of how many othernet addresses are configured and which order they are configured in SCFG.

    Fixes issue #447 reported by Charles Blackburn (FBOBBS)

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Wilfred van Velzen@VERT to Rob Swindell on Tue Oct 11 09:13:01 2022
    Hi Rob,

    On 2022-10-10 15:18:19, you wrote to Git commit to main/sbbs/master:

    Use nearest-zone matching for source FTN address when replying to netmailRather than only matching exact zone numbers as a final
    "nearest" addresssearch, use a "nearest zone" matching algorithm ("nearest" being the mostmathematically near). This way, replying to netmail from a zone 2 addresswould always match a zone 1 source
    address, regardless of how many othernetaddresses are configured and
    which order they are configured in SCFG

    Today you probably get away with this algorithm. But that is a matter of luck, not of how the algorithm works.

    In the past when Fidonet had 6 zones and for instance you had a node number in Zone 1 and in an othernet Zone 8, and replied to someone in Zone 5 or 6, you would have replied from your Zone 8 othernet address... :-(

    So if someone decides to create an othernet Zone 5 or 6, which is a bad idea, but they could, because the numbers are no longer used, your nearest-zone matching would cause netmail issues...

    Bye, Wilfred.

    --- FMail-lnx64 2.1.0.18-B20170815
    * Origin: FMail development HQ (2:280/464)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Wilfred van Velzen on Tue Oct 11 10:33:01 2022
    Re: Re: src/sbbs3/netmail.cpp scfglib.h scfglib1.c
    By: Wilfred van Velzen to Rob Swindell on Tue Oct 11 2022 09:13 am

    So if someone decides to create an othernet Zone 5 or 6, which is a bad idea, but they could, because the numbers are no longer used, your nearest-zone matching would cause netmail issues...

    It's just a default address selection algo. The user can always choose a different/more-correct source address, if the system has one.
    --
    digital man (rob)

    Synchronet "Real Fact" #26:
    The Synchronet Web Server was written predominantly by Stephen Hurd (Deuce) Norco, CA WX: 65.0°F, 88.0% humidity, 3 mph ESE wind, 0.00 inches rain/24hrs ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Wilfred van Velzen@VERT to Digital Man on Tue Oct 11 20:37:37 2022
    Hi Digital,

    On 2022-10-11 10:33:01, you wrote to me:

    So if someone decides to create an othernet Zone 5 or 6, which is a bad
    idea, but they could, because the numbers are no longer used, your
    nearest-zone matching would cause netmail issues...

    It's just a default address selection algo. The user can always choose a different/more-correct source address, if the system has one.

    Ok, didn't understand that... ;)

    Bye, Wilfred.

    --- FMail-lnx64 2.1.0.18-B20170815
    * Origin: FMail development HQ (2:280/464)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net