Hello, Rob.
Is possible to config NNTP service to add a tearline on messages
posted by NNTP, like SBBSECHO do on messages?
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)) { --
-=> 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
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 ÄÄÄÙ
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.
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. --
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 577 |
Nodes: | 8 (0 / 8) |
Uptime: | 61:40:32 |
Calls: | 10,734 |
Calls today: | 1 |
Files: | 5 |
Messages: | 442,632 |