• Re: NNTP tearline

    From dragon@1:103/705 to Mauro Veiga on Fri Apr 16 12:13:04 2021
    On 4/16/2021 9:13 AM, Mauro Veiga wrote:
    -=> Quoting Digital Man to Mauro Veiga <=-

    DM> Re: NNTP tearline
    DM> By: Mauro Veiga to DIGITAL MAN on Thu Apr 15 2021 09:18 am

    > Hello, Rob.
    >
    > Is possible to config NNTP service to add a tearline on messages
    > posted by NNTP, like SBBSECHO do on messages?

    DM> It doesn't have that feature (nor do I understand why you would want
    DM> it), but if you wanted to add it, you would do something like this in
    DM> exec/nntpservice.js (copy to your "mods" dir first) around line 976:
    DM> body += "\r\n--- my tear line"; // add this line
    DM> if(msgbase.save_msg(hdr,client,body)) { --

    Don't work. Probably i do something wrong.

    Lines 973 to 992: -------------------------------8<-----------------------------
    default:
    writeln("500 Syntax error or unknown command");
    log(LOG_NOTICE,"!unknown command");
    break;

    body += "\r\n--- my tear line"; // add this line if(msgbase.save_msg(hdr,client,body)) {
    }
    }

    // Log statistics

    if(msgs_read)
    log(format("%u messages read",msgs_read));
    if(msgs_posted)
    log(format("%u messages posted",msgs_posted));

    /* End of nntpservice.js */

    } <������Ŀ
    -------------------------------8<----------------------------- �
    I put this because a log error ����


    ... Backup not found: (A)bort (R)etry (P)anic
    ___ Blue Wave/DOS v2.30

    ---
    � Synchronet � Ninho do Abutre 2 BBS - Rio de Janeiro, Brazil


    DM doesn't know exactly which version of the .js you're working with, so
    he said "around line 976". In my version (3.17), you're looking for
    line 955, which is:

    if(msgbase.save_msg(hdr,client,body)) {

    Right above this line, you would put:

    body += "\r\n--- my tear line";

    Presumably replacing "my tear line" with your actual tear line.

    Your version MIGHT be a different line, but the idea is that you're
    adding the tear line to the body just before the message is saved.

    ---
    þ Synchronet þ IPTIA - bbs2.ipingthereforeiam.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)