if (empty($letheID)) { $errRes[] = 'Mail Not Sent From Lethe (Subject: ' . $mailSubject . ')'; } else { $errRes[] = 'Lethe Mail Found'; # Check Bounce Rule $bounceReturn = bmhBodyRules($mailSubject . $msgBody); $bounceRuleAct = @$bounceActs[$bounceReturn['rule_cat']]; # Use Rule For Mail $bounceApp->bounceKey = trim($letheID); $bounceApp->reportIP = "0.0.0.0"; $bounceApp->reportMail = trim($letheReceiver); $bounceApp->reportBounceType = $bounceReturn['rule_cat']; $bounceApp->bounceAction = $bounceRuleAct; $errRes[] = 'Camp Key: ' . $letheID; $errRes[] = 'Receiver: ' . $letheReceiver; if ($bounceApp->bounceHandle()) { # Remove Msg @imap_delete($inst, $row['msgno']); $errRes[] = 'action was applied -> Rule: ' . @$LETHE_BOUNCE_ACTIONS[$bounceRuleAct]; } else { $errRes[] = 'action was not applied'; } } $errRes[] = '<hr>'; } @imap_expunge($inst); } } } else { $errRes[] = '* Undefined Submission Account!'; }