• PyGate: Content-Type: text/plain; charset=UTF-8; format=flowed

    From Tommi Koivula@2:221/10 to All on Mon Jan 26 10:11:59 2026
    To: Stephen Walsh
    On Mon, 26 Jan 2026 02:55:02 +0000 Stephen Walsh wrote:

    Fixed, along with the TZUTC kludge.... #-)
    Two fixes for the price of one!.

    Fidonet to NNTP messages are so rare that there could even be
    something else that I've missed.

    I run PyGate here in some kind of "reverse" mode, I send all fido messages to nntp. ;)

    'Tommi

    --- PyGate Linux v1.5.6
    * Origin: RBB PyGate @ inn.news.fidonet.fi (2:221/10)
  • From Stephen Walsh@3:633/280 to Tommi Koivula on Mon May 25 11:24:22 2026
    Hello Tommi!


    ### Version 1.5.15 (May 25, 2026)

    Merged a set of changes contributed by a fellow sysop (marked with `# TK` comments in the source) that preserve FidoNet "To" and reader information across
    the gateway in both directions, plus related header adjustments.

    #### To/From Name Round-Trip via X-Comment-To

    The FidoNet "To" name is now carried across the gateway using the `X-Comment-To`
    NNTP header.

    Changes in `src/nntp_module.py`:
    - Inbound articles now capture `X-Comment-To` into the message `to_name`.
    - `build_nntp_article()` now emits an `X-Comment-To:` header carrying the FidoNet
    recipient name.

    Changes in `src/gateway.py`:
    - NNTP -> FidoNet (`convert_nntp_to_fido`) sets the FidoNet `to_name` from the
    NNTP `X-Comment-To` header (falls back to `Unknown`). The previous behaviour of
    always using the area `default_to` ("All") is retained as a commented-out line.
    This suits a full-feed configuration where Usenet posts are normally addressed
    to "All".
    - FidoNet -> NNTP (`convert_fido_to_nntp`) now passes `to_name` through so the
    `X-Comment-To` header can be populated.

    #### Reader / Tosser Kludges (NOTE / NEWSREADER)

    When gating NNTP -> FidoNet, the posting agent information is now preserved as FidoNet kludge lines:
    - NNTP `User-Agent` -> `\x01NOTE:` kludge
    - NNTP `X-Newsreader` -> `\x01NEWSREADER:` kludge

    Changes in `src/gateway.py` populate `note` (from `User-Agent`) and `newsreader`
    (from `X-Newsreader`); `src/fidonet_module.py` preserves and writes both kludges.

    Note: a copy/paste bug in the contributed code wrote the `newsreader` value under
    a second `\x01NOTE:` label; this was corrected to `\x01NEWSREADER:` during the merge so the two fields produce distinct kludges.

    #### Header Adjustments (FidoNet -> NNTP)

    In `build_nntp_article()` (`src/nntp_module.py`):
    - Added `Content-Transfer-Encoding: 8bit`.
    - The FidoNet origin line is now emitted as `X-Organization:` instead of the
    standard `Organization:` header.

    In `src/fidonet_module.py`, the tear line is now written as a bare `---` when the
    supplied tear line does not already start with `---` (previously the PyGate software identifier was appended after the dashes).




    Stephen


    --- GoldED+/LNX 1.1.5-b20260304
    * Origin: Dragon's Lair ---:- dragon.vk3heg.net -:--- Prt: 6800 (3:633/280)
  • From Tommi Koivula@2:221/10.21 to Stephen Walsh on Tue May 26 18:44:46 2026
    Hello, Stephen Walsh.
    On 24/05/2026 21.33 you wrote:

    Hello Tommi!
    ### Version 1.5.15 (May 25, 2026)
    Merged a set of changes contributed by a fellow sysop (marked with `# TK` comments in the source) that preserve FidoNet "To" and reader information across
    the gateway in both directions, plus related header adjustments.

    So it seems that I did not break much. ;)

    'Tommi

    ---
    * Origin: RBB PyGate I (2:221/10.21)
  • From Stephen Walsh@3:633/280 to Tommi Koivula on Wed May 27 09:29:36 2026

    Hello Tommi!

    26 May 26 18:44, you wrote to me:

    Hello Tommi!
    ### Version 1.5.15 (May 25, 2026)
    Merged a set of changes contributed by a fellow sysop (marked
    with `# TK` comments in the source) that preserve FidoNet "To"
    and reader information across the gateway in both directions,
    plus related header adjustments.

    So it seems that I did not break much. ;)

    No you didn't. I did revert a couple of your changes after doing some testing though.....

    If you do further patching and send them, can you create a text file describing what you changed.



    Stephen


    --- GoldED+/LNX 1.1.5-b20260304
    * Origin: Dragon's Lair ---:- dragon.vk3heg.net -:--- Prt: 6800 (3:633/280)