Deutsch   English   Français   Italiano  
<tae2rs$1isls$1@news.trigofacile.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.176.143-2-105.abo.bbox.fr!not-for-mail
From: =?UTF-8?Q?Julien_=c3=89LIE?= <iulius@nom-de-mon-site.com.invalid>
Newsgroups: fr.comp.usenet.serveurs
Subject: Re: [Debian] Installer PyClean sur INN 2.6.4
Date: Sun, 10 Jul 2022 10:33:00 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <tae2rs$1isls$1@news.trigofacile.com>
References: <tac0c4$p5s$1@rasp.pasdenom.info>
 <tackbi$1h92o$1@news.trigofacile.com> <tadv0t$glh$1@rasp.pasdenom.info>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 10 Jul 2022 08:33:00 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105";
	logging-data="1667772"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
 Gecko/20100101 Thunderbird/91.11.0
Cancel-Lock: sha1:pZAS404cGM4G+laA57x491RSlMI= sha256:4qcsfWHBrEfhycZ2DkTdnhfiVyRAnf2R5vlgpk2dHLY=
	sha1:7svEYz4Bt6gzJt8Y8Jqs1FQzurc= sha256:xuEWA/Cc38TamdLYLiGc282PxQV0+o09o48FbLP6KQs=
In-Reply-To: <tadv0t$glh$1@rasp.pasdenom.info>
Bytes: 4460
Lines: 77

Bonjour Stéphane,

> Aujourd'hui :
> # ls -altr /var/log/news/pyclean/
> total 32
> drwx------ 2 news news 4096  8 juil. 11:17 articles
> -rw-rw-r-- 1 news news 3942  8 juil. 21:58 close_traceback
> -rw-rw-r-- 1 news news 6741  8 juil. 21:58 traceback
> drwx------ 3 news news 4096  9 juil. 09:10 .
> -rw-r--r-- 1 news news  210  9 juil. 11:20 pyclean.log
> -rw-r--r-- 1 news news  720  9 juil. 11:20 init_traceback
> drwxrwxr-x 6 news news 4096 10 juil. 06:25 ..
> 
> Et articles est toujours vide.

Tant que PyClean n'a filtré aucun article, ce répertoire demeurera vide.


> ValueError: Threshold cannot exceed ceiling
> 
> J'ai corrigé cette erreur.

Une bonne nouvelle !

As-tu une raison particulière de ne pas conserver les valeurs par défaut 
? (hormis des paths différents et retain pour garder plus de logs)
   https://github.com/crooks/PyClean/blob/master/samples/pyclean.cfg.sample


> Il manque une doc équivalente à celle de Cleanfeed.

Disons que la doc est minimaliste, et incluse dans le fichier de 
configuration...

# Each of the following EMP filters work in an identical manner.  A
# Cryptographic hash is generated by concatenating various headers. 
Each hash
# has a counter associated with it and that counter is incremented with each
# hit.  When a counter reaches "threshold", futher matching messages will be
# rejected.  Increments will not exceed the defined "ceiling".  After each
# period (in seconds) of "timed_trim", the counter for each hash will be
# decremented by 1.  If decremented to zero, the associated hash is deleted.
# If "maxentries" is reached at any time, a trim is triggered.

Cela ne dit certes pas explicitement que "Threshold cannot exceed 
ceiling"; ça doit se deviner :-)


> À la fin de traceback :
> 
> Traceback (most recent call last):
>    File "/etc/news/filter/filter_innd.py", line 324, in filter_art
>      return self.pyfilter.filter(art)
>    File "/etc/news/filter/filter_innd.py", line 565, in filter
>      post['from_email'] = self.addressParse(art['From'])
>    File "/etc/news/filter/filter_innd.py", line 1003, in addressParse
>      name, email = parseaddr(addr)
>    File "/usr/lib/python3.9/email/utils.py", line 212, in parseaddr
>      addrs = _AddressList(addr).addresslist
>    File "/usr/lib/python3.9/email/_parseaddr.py", line 509, in __init__
>      self.addresslist = self.getaddrlist()
>    File "/usr/lib/python3.9/email/_parseaddr.py", line 253, in getaddrlist
>      ad = self.getaddress()
>    File "/usr/lib/python3.9/email/_parseaddr.py", line 263, in getaddress
>      self.gotonext()
>    File "/usr/lib/python3.9/email/_parseaddr.py", line 236, in gotonext
>      if self.field[self.pos] in self.LWS + '\n\r':
> TypeError: 'in <string>' requires string as left operand, not int

Il semble que ce soit un bug de PyClean avec Python 3...
   https://github.com/crooks/PyClean/issues/5

As-tu ajouté des exclusions dans "bad_from"?

-- 
Julien ÉLIE

« C'est une forêt vierge où la main de l'homme n'a jamais mis le pied. »