Commit b331121a authored by Andrew Robert Nicols's avatar Andrew Robert Nicols Committed by Richard Mansfield
Browse files

Send a notification instead of email for CLAM admin emails


Signed-off-by: default avatarAndrew Robert Nicols <andrew.nicols@luns.net.uk>
parent ec525cff
......@@ -330,9 +330,14 @@ function clam_mail_admins($notice) {
$adminusers = get_records_array('usr', 'admin', 1);
if ($adminusers) {
foreach ($adminusers as $admin) {
// This should probably be some kind of notification
// rather than an email
email_user($admin, null, $subject, $notice);
$message = new StdClass;
$message->users = array($admin->id);
$message->subject = $subject;
$message->message = $notice;
require_once('activity.php');
activity_occurred('maharamessage', $message);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment