• exec/load/newsutil.js

    From deuce@VERT to CVS commit on Fri Oct 19 00:07:32 2012
    exec/load newsutil.js 1.22 1.23
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv23451/load

    Modified Files:
    newsutil.js
    Log Message:
    Do not place "extra" headers in the main hdr object as this can cause
    conflict with SMB and other Synchronet-specific properties. Instead,
    add them to an extra_headers object.

    Fixes a weird an unlikely bug encountered in rec.radio.cb spam.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Fri Oct 26 13:49:22 2012
    exec/load newsutil.js 1.23 1.24
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv19082

    Modified Files:
    newsutil.js
    Log Message:
    Create the extra_headers array when used.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet
  • From rswindell@VERT to CVS commit on Wed Oct 23 00:53:05 2013
    exec/load newsutil.js 1.24 1.25
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv12191

    Modified Files:
    newsutil.js
    Log Message:
    decode_news_body() stopped decoding arcticles encoded as base64 or quoted-printable, likely in rev 1.23 when Deuce introduced the 'extra_headers' property. This should fix that.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Sat Oct 26 10:40:05 2013
    exec/load newsutil.js 1.25 1.26
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv31720/load

    Modified Files:
    newsutil.js
    Log Message:
    Fix bug reported by DesotoFireflite. Headers aren't strings, so you
    can't use toLowerCase() on the header object directly.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Thu Jan 9 22:38:41 2014
    exec/load newsutil.js 1.26 1.27
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv31324

    Modified Files:
    newsutil.js
    Log Message:
    Expand non-standard or unsupporetd FTN Kludge lines (stored in SMB as a FIDOCTRL header fields) into X-FTN-Kludge: header fields in NNTP article headers. I *think* this is what access_d was asking for.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tue Oct 31 12:44:47 2017
    exec/load newsutil.js 1.27 1.28
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv23895

    Modified Files:
    newsutil.js
    Log Message:
    Added X-FTN-SEEN-BY and X-FTN-PATH to news headers output from write_news_header()
    at Nelgin's request. Hopefully everyone else wants this in their exported news headers
    too. No "folding" will take place and these can be rather long values, so that might be
    a problem.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu May 2 02:38:54 2019
    exec/load newsutil.js 1.28 1.29
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv26829

    Modified Files:
    newsutil.js
    Log Message:
    Work-around error reported by Jason (HDCBBS):
    !JavaScript /sbbs/exec/newslink.js line 936: Error: Error -110 adding RECIPIENTADDR field to message header

    This is likely because we're trying to auto-detect the network-address type
    and failing, so just force it to NET_INTERNET here.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Jul 24 18:56:40 2019
    exec/load newsutil.js 1.30 1.31
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv25078

    Modified Files:
    newsutil.js
    Log Message:
    Use the new is_utf8 header property to set the message header "charset=UTF-8" instead of "charset=IBM437", when appropriate.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wed Jul 24 19:04:37 2019
    exec/load newsutil.js 1.31 1.32
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv26306

    Modified Files:
    newsutil.js
    Log Message:
    Clean up previous commit (pretty much a copy/paste from 822header.js)


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sun Jun 7 20:20:38 2020
    exec/load newsutil.js 1.33 1.34
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv16109

    Modified Files:
    newsutil.js
    Log Message:
    If a MIME content-type was not specified, decode_news_body() will now auto-detect UTF-8 body text and set the FTN charset header field accordingly.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sat Mar 13 20:35:25 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/0546fa33fab7404a70287910
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    Do the FTN CHRS kludge to MIME charset translation for CP866->koi8-r

    for Al (TRMB) and his Russian users, requested via DOVE-Net.

    Do an FTN "ASCII 1" -> "US-ASCII" translation of the CHRS->charset too.
    ---
    þ 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 Sun Dec 3 17:33:19 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/40c87dc4166afdc21a5f1e43
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    Correct comment about return value of function

    Why does a function this small need a comment describing its return value in the first place? <sigh>
    ---
    þ 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 Dec 21 00:10:00 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/b256f4ae6b0aea93e488c150
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    Convert LATIN-1 to ISO-8859-1 charset on export to NNTP

    From: Carlos Navarro (2:341/234.1)

    Messages that use CHRS: LATIN-1 are not displayed properly in newsreaders (Synchronet's NNTP server renders them with the default charset=IBM437).

    This fix may work: edit exec/load/newsutil.js, at line 77 insert

    case "LATIN-1 2":
    charset = "ISO-8859-1";
    break;

    If you want to test: ßΘφ≤· ± (accented aeiou, n with tilde)
    ---
    ï¿­ 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 Wed Nov 13 14:31:53 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/bebed0b413b07ffb20caa05e
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    Import and export the message "editor" as the NNTP "user-agent" header field

    The message editor is exported/imported to/from FTN as the "NOTE" kludge.

    For Accession, per irc.synchro.net
    ---
    þ 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 Sat Nov 16 14:42:10 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/e904206bf5cb23c9e5dede2d
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    Fix the regex in the parsing of the "References" header field

    We only want one Message-ID (we'll use the last, since that appears to be the message being replied to based on SLRN behavior). This fixes reply linkage
    when posing from newsreaders that put multiple message-IDs in the
    references header field. This is required for SBBSecho to do its magic
    creation of the FTN REPLY kludge during export.

    This is the fix that Accession was looking for, I think.
    ---
    þ 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 Sat Nov 16 15:14:42 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/bdf72516a77aeda5257e5b53
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    In-Reply-To is not a valid NNTP article header field

    ... so this was just redundant noise. Altough "References" is a valid header field *both* for email and nntp articles, "In-Reply-To" is for email only.
    per RFC 5536
    ---
    þ 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 Sat Nov 16 16:34:38 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/9bf86ab10c206945417c45d9
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    Store original "references" header field as an RFC822HEADER in SMB

    If an original references header field was supplied with the message, include *that* in the header (since it should contain all the IDs of the replied-to message thread) rather than just the message's reply_id (a single message
    ID) when sending via NNTP. This maintains more NNTP post integrity when
    sending back out via NNTP.

    Not sure why we were storing received "references" in the hdr.references returned by parse_news_header(), we don't seem to be using it anywere. Maybe copied from 822header.js or mailproc_util.js? Seems like cruft, so remove it.

    Also, don't ever send an "In-Reply-To" heder field via NNTP (it's not valid /used for NNTP articles, per RFC 5536).
    ---
    þ 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 Sun Dec 1 00:22:31 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/1e740508b9eb8a2b0e5083da
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    MIME-encode To and From header fields that contain non-ASCII chars

    This fixes the display of gitlab pushes from Deucе in conforming news readers. ---
    ï¿­ 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 Sat Feb 1 13:57:52 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/aba2494687cd9781529005d3
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    Use the from_net_addr even if the from_net_type is 0/NONE

    Since it's technically a "local post", but the user/sysop wants their client- provided email address to appear in the header, use it, if provided (don't use a made-up BBS email address that may not be valid).

    For Accession
    ---
    þ 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 Sun May 4 17:35:53 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/e713206ef81812865ce88033
    Modified Files:
    exec/load/newsutil.js
    Log Message:
    Include format=fixed or flowed in exported content-type news header fields
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net