Path: ...!news.mixmin.net!aioe.org!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail From: Marc SCHAEFER Newsgroups: fr.comp.usenet.serveurs Subject: Re: refuser les posts d'un utilisateur =?ISO-8859-1?Q?=28=E0?= sa demande) Date: Fri, 2 Sep 2022 09:19:15 -0000 (UTC) Organization: Posted through news.alphanet.ch Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 2 Sep 2022 09:19:15 -0000 (UTC) Injection-Info: shakotay.alphanet.ch; posting-account="schaefer"; logging-data="2746"; mail-complaints-to="usenet@alphanet.ch"; posting-host="634ce6c9682d817d72f6177875e2bb4f.nnrp.alphanet.ch" User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-21-amd64 (x86_64)) Cancel-Lock: sha256:gkM3lAOzLhrmqLqJBOEDNDC0lRjlNXyMQbhv3MBghHw= sha256:mVSKH626UptUJ1KTrN0q2AUEgODO/sGWnt7bGKr9cjI= Bytes: 1617 Lines: 24 jdd wrote: > if $hdr{Comment} =~ /no-dodin; { > return reject("refused on dodin.fr.nf by user demand"); > }; > > votre avis? je l'écrirais plutôt: if ($hdr{Comment} =~ /no-dodin/i) { return reject("refused on dodin.fr.nf by user demand"); } et on peut aussi l'écrire: return reject("refused on dodin.fr.nf by user demand") if ($hdr{Comment} =~ /no-dodin/i); Mais je ne suis pas trop pour cette deuxième formulation. Dans tous les cas, faire un perl -cw cleanfeed.local avant d'activer, et lire les logs.