#!/usr/bin/php -q get_account_by_mail_id($mail_id); // Ok, so be it $mem->su($uid); // Get the mails informations $mailinfos=$mail->get_details($mail_id); // AND CALL THE HOOKS $hooks->invoke('hook_mail_delete_for_real', array($mail_id, $mailinfos['address'].'@'.$mailinfos['domain'] )); // Bye bye echo "\n\n"; ?>