• NNTP tearline

    From Mauro Veiga@VERT/ABUTRE2 to DIGITAL MAN on Thu Apr 15 05:18:00 2021
    Hello, Rob.

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


    ... Chewbacca of Borg: "RRWARARRHHG!"
    ___ Blue Wave/DOS v2.30

    ---
    þ Synchronet þ Ninho do Abutre 2 BBS - Rio de Janeiro, Brazil
  • From Digital Man@VERT to Mauro Veiga on Thu Apr 15 05:18:00 2021
    Re: NNTP tearline
    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?

    It doesn't have that feature (nor do I understand why you would want it), but if you wanted to add it, you would do something like this in exec/nntpservice.js (copy to your "mods" dir first) around line 976:

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

    Rush quote #43:
    Summers going fast nights growing colder children growing up old friends, older Norco, CA WX: 55.4øF, 71.0% humidity, 0 mph WNW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Mauro Veiga@VERT/ABUTRE2 to DIGITAL MAN on Fri Apr 16 06:13:00 2021
    Quoting Digital Man to Mauro Veiga <=-

    Re: NNTP tearline
    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?

    It doesn't have that feature (nor do I understand why you would want
    it), but if you wanted to add it, you would do something like this in exec/nntpservice.js (copy to your "mods" dir first) around line 976:
    body += "\r\n--- my tear line"; // add this line 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
  • From dragon@VERT/IPTIA to Mauro Veiga on Fri Apr 16 08:13:00 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
  • From Digital Man@VERT to Mauro Veiga on Fri Apr 16 07:23:00 2021
    Re: Re: NNTP tearline
    By: Mauro Veiga to DIGITAL MAN on Fri Apr 16 2021 10:13 am

    Quoting Digital Man to Mauro Veiga <=-

    Re: NNTP tearline
    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?

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

    Looks like you messed up the formatting.

    // 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 ÄÄÄÙ

    You had to add a closing brace? Sounds like you messed up the file. Get it fresh and re-edit.
    --
    digital man

    Sling Blade quote #26:
    Karl: kaiser blade, ax handle with long blade on it shaped kinda like a banana. Norco, CA WX: 65.2øF, 56.0% humidity, 4 mph NNW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Mauro Veiga@VERT/ABUTRE2 to DRAGON on Fri Apr 16 13:17:00 2021
    Quoting Dragon to Mauro Veiga <=-

    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.

    Yes! The line is 955 too here. Is working now. :-)
    Thanks, Dragon.


    ... MAFIA DOS..Ey'What's A Matta You? Wanna Try Again (Y/n)?
    ___ Blue Wave/DOS v2.30

    ---
    þ Synchronet þ Ninho do Abutre 2 BBS - Rio de Janeiro, Brazil
  • From Mauro Veiga@VERT/ABUTRE2 to DIGITAL MAN on Fri Apr 16 13:18:00 2021
    Quoting Digital Man to Mauro Veiga <=-

    You had to add a closing brace? Sounds like you messed up the file.
    Get it fresh and re-edit. --

    Yes, i did a messed. Was the line 955 on my file.
    Is working now. :-)
    Thanks, Rob.


    ... Press any key - EXCEPT THAT ONE...
    ___ Blue Wave/DOS v2.30

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