Liste des Groupes | Revenir à fcu serveurs |
Le 16/08/2022 à 22:46, M.V. a écrit :
donc ce qui suit est à copier dans filter_nnrpd.pl ?
if ($config{checkincludedtext}) {
my ($lines, $quoted, $antiquoted) = analyze($body);
if ($lines > $config{includedcutoff}
&& $quoted - $antiquoted > $lines *
$config{includedratio}) {
$rval = "Article contains too much quoted text";
}
}
sub analyze {
my ($lines, $quoted, $antiquoted) = (0, 0, 0);
local $_ = shift;
do {
if ( /\G$config{quotere}/mgc ) {
$quoted++;
} elsif ( /\G$config{antiquotere}/mgc ) {
$antiquoted++;
}
} while ( /\G(.*)\n/gc && ++$lines );
return ($lines, $quoted, $antiquoted);
}
Les messages affichés proviennent d'usenet.