Salut,
Julien ÉLIE a tapoté :
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.
Peux-tu nous recopier le contenu d'init_traceback, traceback (tout du
moins la fin, le fichier a l'air volumineux) et pyclean.log ?
Pour init_traceback :
Traceback (most recent call last):
File "filter_innd.py", line 229, in __init__
self.pyfilter = Filter()
File "filter_innd.py", line 525, in __init__
timedtrim=config.getint('emp', 'phn_timed_trim'))
File "filter_innd.py", line 1372, in __init__
raise ValueError('Threshold cannot exceed ceiling')
ValueError: Threshold cannot exceed ceiling
Traceback (most recent call last):
File "filter_innd.py", line 229, in __init__
self.pyfilter = Filter()
File "filter_innd.py", line 525, in __init__
timedtrim=config.getint('emp', 'phn_timed_trim'))
File "filter_innd.py", line 1372, in __init__
raise ValueError('Threshold cannot exceed ceiling')
ValueError: Threshold cannot exceed ceiling
J'ai corrigé cette erreur.
Il manque une doc équivalente à celle de Cleanfeed.
À 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
Et pyclean.log :
2022-07-09 09:10:11 INFO emp_body initialized. threshold=5, ceiling=70, maxentries=36000, timedtrim=3600
2022-07-09 11:20:51 INFO emp_body initialized. threshold=5, ceiling=70, maxentries=36000, timedtrim=3600
-- Stéphane 🔗<http://pasdenom.info/fortune/>Le sang les avait joints, l'intérêt les sépare. -+- Jean de La Fontaine (1621-1695), Le Vieillard et ses Enfants (Fables IV.18) -+-