🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #262872

Re: 40tude find & replace 4 characters before sending message!!!!!!

#262872
From: Bernd Rose
Date: Mon, 10 Sep 2018 05:53
22 lines
2246 bytes
On Sun, 9th Sep 2018 20:32:50 -0500, VanguardLH wrote:

>> The following is what I use for the OnBeforeSavingMessage event.  Just
>> use it for clues on how to walk through lines in the body of the
>> message.
>> 
>> //Remove PGP signature from newsgroup messages
>> 
>> program OnBeforeSavingMessage;
>> const pgp_sig_start='
> 
> Hmm, not sure why my post got truncated. 

For all people except you, it didn't. ;-)  Your /inbound/ PGP removal 
searches for a string which happens to be inside your script. Because
the script doesn't check position of the string inside the line, it
deletes starting from "pgp_sig_start" declaration. (Plus 1 line back.)
Your "broken signature"-check also replaces not only the PGP-Sig, but 
other occurrences of the PGP-Sig inside the texts, as well... (Cf.:
"if pos ... > 0" instead of "if pos ... = 1".)

Bernd
Technical Details
Message-ID: <ocdihblxtfe$.dlg@b.rose.tmpbox.news.arcor.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <pn1qed$28a6$1@adenine.netfront.net> <1537aq73i3hah.dlg@v.nguard.lh> <pn241i$bot$1@adenine.netfront.net> <1cnxz2t8qh6sh.dlg@v.nguard.lh> <vlqix6ao91mv$.dlg@v.nguard.lh>

Show Full Headers
Complete Article Headers
Message-ID: <ocdihblxtfe$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: 40tude find & replace 4 characters before sending message!!!!!!
Date: Mon, 10 Sep 2018 07:53:30 +0200
From: Bernd Rose <b.rose.tmpbox@arcor.de>
References: <pn1qed$28a6$1@adenine.netfront.net> <1537aq73i3hah.dlg@v.nguard.lh> <pn241i$bot$1@adenine.netfront.net> <1cnxz2t8qh6sh.dlg@v.nguard.lh> <vlqix6ao91mv$.dlg@v.nguard.lh>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: albasani.net
Lines: 22
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.albasani.net ELNizA4NKp2pwQiFZ5ArjbEjHZZPPa6cgeSXRhE1cAW5/RonsgIGtl7NZXxt7KfFJ6rJXB0RBCON2Vj1vCXiXg==
NNTP-Posting-Date: Mon, 10 Sep 2018 05:53:31 +0000 (UTC)
Injection-Info: news.albasani.net; logging-data="Ye7p/1x2AlFDOSAPOHQB+2EuiQd16Cdk+Qkb0C0SlQ99SaOmCNVikH32hNyt5mux5feN8VIfANLOSzjihl7GKlLu9pk/Vsn30B4u6Tyv3Nf9gW2VkfqQy21KyNU8JZUY"; mail-complaints-to="abuse@albasani.net"
User-Agent: 40tude_Dialog/2.0.15.41 (f2081170.23.462)
Cancel-Lock: sha1:odFHNnYjaZGB8UCHSX96gO2RGic=
X-Received-Bytes: 2168
X-Received-Body-CRC: 1517374231