Esempio n. 1
0
$Bounces = unify_array($Bounces);
$bc = count($Bounces);
echo sprintf(___("Es wurden %s Mails durchsucht."), $mc) . "\n" . sprintf(___("%s Mails ergaben einen Treffer."), $bcmatch) . "\n" . sprintf(___("Es wurden aus %s Adressen %s (eindeutige) potentiell fehlerhafte Adressen erkannt."), $bctotal, $bc) . "\n";
if ($bc < 1) {
    exit;
}
#adressen bearbeiten
$created = date("Y-m-d H:i:s");
srand((double) microtime() * 1000000);
$rcode = rand(11, 99);
$Export_Filename = "bounceit_" . date_convert_to_string($created) . "-" . $rcode . ".csv";
$BounceDel_Filename = "bounceit-delete_" . date_convert_to_string($created) . "-" . $rcode . ".csv";
$fp = fopen($tm_datapath . "/" . $Export_Filename, "a");
$fpdel = fopen($tm_datapath . "/" . $BounceDel_Filename, "a");
$delimiter = ",";
$CSV = $ADDRESS->genCSVHeader($delimiter);
if ($fp) {
    if (!DEMO) {
        fputs($fp, $CSV, strlen($CSV));
    }
}
if ($fpdel) {
    if (!DEMO) {
        fputs($fpdel, $CSV, strlen($CSV));
    }
}
echo ___("Export") . ": " . $Export_Filename . "\n";
$search['email_exact_match'] = true;
for ($bcc = 0; $bcc < $bc; $bcc++) {
    $search['email'] = $Bounces[$bcc];
    $A = $ADDRESS->getAdr(0, 0, 0, 0, $search, "", 0, 0);