• Fromaddr question

    From Nil Alexandrov@2:5015/46 to All on Sun Sep 14 07:21:42 2025
    Hello, All!

    I am trying to understand why jamnntpd/smapinntpd will write my from address 2:5015/46 in reverse order like this <[email protected].2>. Is it a bug or a feature?
    I guess it is a feature but then what kind of issue it tries to solve?

    Below is the snippet from nntpserv.c which does it

    if(sscanf(fromaddr,"%u:%u/%u.%u", &zone, &net, &node, &point)==4)
    sprintf(fromaddr,"%u@%u.%u.%u", point, node, net, zone);

    Best Regards, Nil
    --- GoldED+/LNX 1.1.5-b20240306
    * Origin: ChatGPT can make mistakes. Check important info. (2:5015/46)
  • From Nick Boel@1:154/10 to Nil Alexandrov on Sun Sep 14 18:56:32 2025
    Hey Nil!

    On Sun, 14 Sep 2025 17:55:50 +0300, you wrote:

    I think the right solution would be to specify the *gateway.domain* in
    the config and that should construct the from address like [email protected]. This is not a big patch I
    might be able to provide.

    Agreed and that would be awesome?

    I can find what is wrong there and fix but the first thing I would like
    to do is to sync all the branches of jamnntpd/smapinntpd. Check this out what..

    % git remote -v
    axxisd https://github.com/axxisd/smapinntpd (fetch)
    axxisd https://github.com/axxisd/smapinntpd (push)
    jam_axxisd https://github.com/axxisd/jamnntpd (fetch)
    jam_axxisd https://github.com/axxisd/jamnntpd (push)

    The above are mine, and have recently been updated to compile on the latest gcc 15.2.1, and smapinntpd includes/installs smapi with part of the make process so you don't have to go and install it separately yourself.

    I'm unsure as to if either of them compile or work on Windows, though.

    jam_cnb https://github.com/cnb/jamnntpd.git (fetch)
    jam_cnb https://github.com/cnb/jamnntpd.git (push)

    This is Carlos Navarro's fork, which I believe he used on Windows. I haven't actually heard from him in some time, though. Maybe he is still able to be contacted through Fidonet?

    jam_ftnapps https://github.com/ftnapps/jamnntpd.git (fetch)
    jam_ftnapps https://github.com/ftnapps/jamnntpd.git (push)
    origin https://github.com/ftnapps/smapinntpd.git (fetch)
    origin https://github.com/ftnapps/smapinntpd.git (push)

    These are the original repos by RJ Clay. I believe he took what was on sourceforge at the time (1.0 by Billings), changed up a few things, changing versions from 1.1 to 1.2, and then put it on github as v1.3. Nobody has access to these, because the maintainer (RJ) has passed away. So both Carlos and myself forked from this version. I don't think Carlos has done much with it after initially fixing some very annoying outstanding bugs.

    For the record, my repositories have everything Carlos has done and more. I'm unsure as to why we didn't work together to begin with, but that was awhile ago now.

    Is there anything else we can do? I'm not much of a github wizard or anything so I would gladly take suggestions.

    Regards,
    Nick

    ... Sarcasm: because beating people up is illegal.
    --- GoldED+/LNX 1.1.5-b20250409
    * Origin: _thePharcyde telnet://bbs.pharcyde.org (Wisconsin) (1:154/10)
  • From Tommi Koivula@2:221/1 to Nil Alexandrov on Tue Sep 23 11:21:10 2025
    Nil Alexandrov wrote:

    Also, there is a bug with the X-SMAPI-From field, which I will try
    to investigate later
    X-SMAPI-From: Dmitry Protasoff <0:0/0.0>
    X-SMAPI-To: Nil A <2:5001/100.1>

    I have 'fixed' this in the past, removed the ftn address part. :) I
    think these X-SMAPI-* fields are only for information.. ?

    Path: SmapiNNTPd!not-for-mail
    From: Nil Alexandrov <[email protected].2>
    To: Tommi Koivula
    X-Comment-To: Tommi Koivula
    Newsgroups: jamnntpd
    Subject: Fromaddr question
    Date: Sun, 14 Sep 2025 07:17:14 +0300
    Message-ID: <351$jamnntpd@SmapiNNTPd>
    References: <350$jamnntpd@SmapiNNTPd>
    X-SMAPI-From: Nil Alexandrov
    X-SMAPI-To: Tommi Koivula
    X-SMAPI-DateWritten: 14 Sep 25 10:17:14
    X-SMAPI-DateArrived: 14 Sep 25 10:21:56
    X-SMAPI-Control: @REPLY: 2:221/360.0 68c6698a
    X-SMAPI-Control: @MSGID: 2:5015/46 68c66cf5

    'Tommi

    ---
    * Origin: smapinntpd/lnx (2:221/1.0)
  • From Nil Alexandrov@2:5015/46 to Tommi Koivula on Tue Sep 23 16:40:26 2025
    Hello, Tommi!

    Tuesday September 23 2025 11:21, from Tommi Koivula -> Nil Alexandrov:

    X-SMAPI-To: Nil A <2:5001/100.1>
    I have 'fixed' this in the past, removed the ftn address part. :) I

    The bug in the code is that it takes From field from the Origin line but later it will override with the From field from the JAM/Squish database which is not set right usually.

    # Get address from the Origin line instead of the OADDRESS field
    # of the JAM message header. This option makes SmapiNNTPd slower, but
    # may be useful if your tosser does not set the OADDRESS field. readorigin

    Also, I like the idea of the readorigin option in the config file. Unfortunately, it is not fully implemented.

    think these X-SMAPI-* fields are only for information.. ?

    Correct, for those who are interested in original FTN headers. I am thinking of writing a mobile app using the AI help (cause I have no experience in GUI, mobile, etc) that can work over the NNTP protocol and understand different NNTP<->FTN gateway software that exists today, so that the *normal* FTN headers are displayed instead of RFC representation.

    Best Regards, Nil
    --- GoldED+/LNX 1.1.5-b20240306
    * Origin: ChatGPT can make mistakes. Check important info. (2:5015/46)