πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90856

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

#90856
From: Jesse Rehmer
Date: Thu, 05 Oct 2023 15:52
56 lines
3765 bytes
On Sep 3, 2023 at 4:36:15 PM CDT, "Julien Γ‰LIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Jesse,
> 
>>>>>> 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?
> 
> Besides Ivo's script working for the tradspool storage method, there is
> also a straight-forward way to do that depending on the overview method
> you're using.
> 
> With ovsqlite, you obtain all these storage tokens with:
> 
>      ovsqlite-util -g -n news.lists.filters | cut -f 5 -d' '
> 
> See tdx-util and ovdb_stat for a similar dump with tradindexed and ovdb.
> I can add a paragraph about that in the perl-nocem documentation as it
> is an interesting use case to document.

If it isn't overly complicated to provide an example for tdx-util that would
be helpful to me and I'm sure others. I'll get around to figuring it out at
some point. I'm currently using tradspool so Ivo's script works fine for now.

>>>>> 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.
> 
> The "not in keyring" log should really be in your news.notice file as
> the default log level for the logmsg() function in perl-nocem is notice:
>      syslog($lvl || 'notice', '%s', $msg);
> 
> Are you sure the nocem-fr@alphanet.ch entry was in nocem.ctl when you
> did that test?
> I think the log you expected was another one, for a issuer not present
> in nocem.ctl:
> 
>          logmsg(
>              "Article $msgid: unwanted ($hdrs{issuer}/$hdrs{type})",
>              'debug'
>          );
> 
> In that case, yes, this log is forced at the debug level.  I believe the
> rationale is for not repeating every couple of minutes that you don't
> process the notices or types from one or several issuers.  It's not
> necessary when you already know that.
> Yet, I understand it may be useful to be aware of new issuers or a new
> type sent by a known issuer.
> Should this very log be changed to be at the notice level?  I'm OK with
> that move unless you see any drawback.  It seems more helpful for admins.

You are correct, what I was looking for then would have been related to
missing issuer in nocem.ctl. I don't think changing it would spam logs too
much?
Technical Details
Message-ID: <ufmm3l$2mjm$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> <ucvdep$1m48$1@nnrp.usenet.blueworldhosting.com> <ucvecm$1fm4$1@nnrp.usenet.blueworldhosting.com> <ud2u8f$2cj5i$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <ufmm3l$2mjm$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: perl-nocem not processing all NoCeMs by same issuer
Date: Thu, 05 Oct 2023 15:52:21 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <ucv8rp$14t2$1@nnrp.usenet.blueworldhosting.com> <ucvdep$1m48$1@nnrp.usenet.blueworldhosting.com> <ucvecm$1fm4$1@nnrp.usenet.blueworldhosting.com> <ud2u8f$2cj5i$1@news.trigofacile.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
Newsgroups: news.software.nntp
Organization: BWH Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 5 Oct 2023 15:52:21 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="88694"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:gsNk5k8WCpAOUbOYZeSFwk7uiZs= sha256:xWQ+HSs3h28gP9q5D4+kVAdT0jmb9yyslP0R7fcupG8= sha1:YeONAh1d6UevXoKxNnZOGBvz3Aw= sha256:BobjNrK/k0+5BWC1ArJjklRmhaxzODpLzwwq5UyBi40=
X-Usenapp: v1.27.1/d - Full License