Deutsch   English   Français   Italiano  
<teshqj$2lq$1@shakotay.alphanet.ch>

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

Path: ...!news.mixmin.net!aioe.org!news.alphanet.ch!alphanet.ch!.POSTED!not-for-mail
From: Marc SCHAEFER <schaefer@alphanet.ch>
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: <teshqj$2lq$1@shakotay.alphanet.ch>
References: <teqe5t$n6e$2@ns507557.dodin.fr.nf>
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 <jdd@dodin.org> 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.