🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90709

Re: perl-nocem not processing all NoCeMs by same issuer

#90709
From: Jesse Rehmer
Date: Sat, 02 Sep 2023 13:31
64 lines
3854 bytes
On Sep 2, 2023 at 8:14:32 AM CDT, "Ivo Gandolfo" <usenet@bofh.team> wrote:

> On 02/09/2023 14:47, Jesse Rehmer wrote:
>>> 
>>> Next question, is there an easier way for me to process the notices I have in
>>> news.lists.filters without grabbing Message-IDs one-by-one?
>> 
> 
> This is a script I use when I want to re-run the notice again:
> 
> http://paganini.bofh.team/ru_nocem_again.pl
> 
> Just adapt them to your system

This will work, thank you!

> 
>> Also, shouldn't perl-nocem be logging when it receives a notice for which one
>> does not have a key?
>> 
>> I see the logging in the perl-nocem code, but I never get "not in keyring" in
>> my logs even though I was receiving messages for which were not in my keyring.
> 
> Almost prob. you have same my problem, the "debug" doent's work. Just
> edit your perl-nocem script, and change all log "debug" with "err" or
> "notice", and u find all on news.err or news.notice. Reload the config
> on inn with cltinnd reload

I see what you mean about some logging set to 'debug', but this portion of the
code that should log the one I mention doesn't specify a level:

    if (/^\[GNUPG:\]\s+GOODSIG\s+\S+\s+(.*)/m) {
        return 1 if $1 =~ /\Q$issuer\E/;
        logmsg("Article $msgid: signed by $1 instead of $issuer");
    } elsif (/^\[GNUPG:\]\s+NO_PUBKEY\s+(\S+)/m) {
        logmsg("Article $msgid: $issuer (ID $1) not in keyring");
    } elsif (/^\[GNUPG:\]\s+BADSIG\s+\S+\s+(.*)/m) {
        logmsg("Article $msgid: bad signature from $1");
    } elsif (/^\[GNUPG:\]\s+BADARMOR/m or /^\[GNUPG:\]\s+UNEXPECTED/m) {
        logmsg("Article $msgid: malformed signature");
    } elsif (/^\[GNUPG:\]\s+ERRSIG\s+(\S+)/m) {
        # safety net: we get there if we don't know about some token
        logmsg("Article $msgid: unknown error (ID $1)");
    } else {
        # some other error we don't know about happened.
        # 126 is returned by the child if exec fails.
        s/ at \S+ line \d+\.\n$//;
        s/\n/_/;
        if ($INN::Config::gpg) {
            logmsg(
                "Article $msgid: $INN::Config::gpg exited "
                  . (($status == 126) ? "($_)" : "with status $status"),
                'err'
            );
        } else {
            logmsg(
                "Article $msgid: $INN::Config::gpgv exited "
                  . (($status == 126) ? "($_)" : "with status $status"),
                'err'
            );
        }
    }
    return 0;
}
Technical Details
Message-ID: <ucvdep$1m48$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <ucv8rp$14t2$1@nnrp.usenet.blueworldhosting.com> <ucv9oq$18hi$1@nnrp.usenet.blueworldhosting.com> <ucvast$2cnb$1@nnrp.usenet.blueworldhosting.com> <ucvcfo$ppi7$1@paganini.bofh.team>

Show Full Headers
Complete Article Headers
Message-ID: <ucvdep$1m48$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: perl-nocem not processing all NoCeMs by same issuer
Date: Sat, 02 Sep 2023 13:31:05 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <ucv8rp$14t2$1@nnrp.usenet.blueworldhosting.com> <ucv9oq$18hi$1@nnrp.usenet.blueworldhosting.com> <ucvast$2cnb$1@nnrp.usenet.blueworldhosting.com> <ucvcfo$ppi7$1@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 2 Sep 2023 13:31:05 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="k8cWG9+Y/93vxQYza75s9JQFoL8rgVF3P1Yluveoqs0"; logging-data="55432"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:D2h6wH6vkwltjBr/K9szTOKqA48= sha256:S3EpnA3mdDQmJ+Yzf/ACW42lOnWPhRc1G7UZA4vqgN8= sha1:z0ZhDy1IB75qkU6FcIJDdob21Hc= sha256:wPXS/R4NTgTiGPndaCehsYq0bcracHuUFI2si6cpY1g=
X-Usenapp: v1.27.1/d - Full License