HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/mailing.wb-cloud.nl/private_html/admin/checkbouncerules.php
<?php

require_once dirname(__FILE__).'/accesscheck.php';

ob_end_flush();
$limit = ' limit 100';
$numperrun = 500;
$bouncerules = loadBounceRules();

$req = Sql_Fetch_Row_query(sprintf('select count(*) from %s  where comment != "not processed"',
    $GLOBALS['tables']['bounce']));
$total = $req[0];
if (isset($_GET['s'])) {
    $s = sprintf('%d', $_GET['s']);
    $e = $s + $numperrun;
} else {
    $s = 0;
    $e = $numperrun;
}
$limit = ' limit '.$s.', '.$numperrun;

if ($total > $numperrun && $e < $total) {
    $next = '<p class="button">'.PageLink2('checkbouncerules&s='.$e,
            sprintf($GLOBALS['I18N']->get('Process Next %d'), $numperrun)).'</p>';
} else {
    $next = '';
}

$unmatched = 0;
$matched = 0;
$req = Sql_Query(sprintf('select * from %s where comment != "not processed" %s', $GLOBALS['tables']['bounce'], $limit));
while ($row = Sql_Fetch_Array($req)) {
    $action = matchBounceRules($row['header']."\n\n".$row['data'], $bouncerules);
    if ($action) {
        //  print $row['comment']. " Match: $action<br/>";
        ++$matched;
    } else {
        ++$unmatched;
        echo $GLOBALS['I18N']->get('No match').': '.$row['id'].' '.PageLink2('bounce&amp;id='.$row['id'],
                $row['comment']).'<br/>';
    }
    flush();
}

echo '<br/>'.$unmatched.' '.$GLOBALS['I18N']->get('bounces did not match any current active rule');
echo '<br/>'.$matched.' '.$GLOBALS['I18N']->get('bounce matched current active rules');
echo $next;