1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| function callbackAction ($msgnum, $bounce_type, $email, $subject, $xheader, $remove, $rule_no=false, $rule_cat=false, $totalFetched=0) {
// sample mysql code
if ( $remove == true || $remove == '1' ) {
echo "note: sample code would have set the database to allowed='false'<br />";
/*
$conn = mysql_connect("localhost","username","password");
$sql = "SELECT id FROM mailinglist WHERE email = '" . $email . "'";
$result = mysql_query($sql);
if ( $result ) {
while($row = mysql_fetch_array($result)) {
$sql_update = "UPDATE mailinglist SET allowed='false' WHERE email = '" . $email . "'";
$result_update = mysql_query($sql_update);
}
}
mysql_close($conn);
*/
}
$displayData = prepData($email, $bounce_type, $remove);
$bounce_type = $displayData[bounce_type];
$emailName = $displayData[emailName];
$emailAddy = $displayData[emailAddy];
$remove = $displayData[remove];
echo $msgnum . ': ' . $rule_no . ' | ' . $rule_cat . ' | ' . $bounce_type . ' | ' . $remove . ' | ' . $email . ' | ' . $subject . "<br />\n";
return true;
} |
Partager