diff --git a/data/web/inc/functions.quarantine.inc.php b/data/web/inc/functions.quarantine.inc.php index 1216b61e..430047e0 100644 --- a/data/web/inc/functions.quarantine.inc.php +++ b/data/web/inc/functions.quarantine.inc.php @@ -619,7 +619,7 @@ function quarantine($_action, $_data = null) { break; case 'get': if ($_SESSION['mailcow_cc_role'] == "user") { - $stmt = $pdo->prepare('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `rcpt`, `sender`, UNIX_TIMESTAMP(`created`) AS `created` FROM `quarantine` WHERE `rcpt` = :mbox'); + $stmt = $pdo->prepare('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `score`, `rcpt`, `sender`, UNIX_TIMESTAMP(`created`) AS `created` FROM `quarantine` WHERE `rcpt` = :mbox'); $stmt->execute(array(':mbox' => $_SESSION['mailcow_cc_username'])); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); while($row = array_shift($rows)) { @@ -627,7 +627,7 @@ function quarantine($_action, $_data = null) { } } elseif ($_SESSION['mailcow_cc_role'] == "admin") { - $stmt = $pdo->query('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `rcpt`, `sender`, UNIX_TIMESTAMP(`created`) AS `created` FROM `quarantine`'); + $stmt = $pdo->query('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `score`, `rcpt`, `sender`, UNIX_TIMESTAMP(`created`) AS `created` FROM `quarantine`'); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); while($row = array_shift($rows)) { $q_meta[] = $row; @@ -636,7 +636,7 @@ function quarantine($_action, $_data = null) { else { $domains = array_merge(mailbox('get', 'domains'), mailbox('get', 'alias_domains')); foreach ($domains as $domain) { - $stmt = $pdo->prepare('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `rcpt`, `sender`, UNIX_TIMESTAMP(`created`) AS `created` FROM `quarantine` WHERE `rcpt` REGEXP :domain'); + $stmt = $pdo->prepare('SELECT `id`, `qid`, `subject`, LOCATE("VIRUS_FOUND", `symbols`) AS `virus_flag`, `score`, `rcpt`, `sender`, UNIX_TIMESTAMP(`created`) AS `created` FROM `quarantine` WHERE `rcpt` REGEXP :domain'); $stmt->execute(array(':domain' => '@' . $domain . '$')); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); while($row = array_shift($rows)) { diff --git a/data/web/js/site/quarantine.js b/data/web/js/site/quarantine.js index 2c6f58c1..caa72762 100644 --- a/data/web/js/site/quarantine.js +++ b/data/web/js/site/quarantine.js @@ -17,6 +17,7 @@ jQuery(function($){ {"name":"sender","title":lang.sender}, {"name":"rcpt","title":lang.rcpt, "breakpoints":"xs sm md", "type": "text"}, {"name":"virus","title":lang.danger, "type": "text"}, + {"name":"score","title": lang.spam_score,"type": "number"}, {"name":"subject","title":lang.subj, "type": "text"}, {"name":"created","formatter":function unix_time_format(tm) { var date = new Date(tm ? tm * 1000 : 0); return date.toLocaleString();},"title":lang.received,"style":{"width":"170px"}}, {"name":"action","filterable": false,"sortable": false,"style":{"text-align":"right"},"style":{"width":"220px"},"type":"html","title":lang.action,"breakpoints":"xs sm md"} diff --git a/data/web/lang/lang.cs.php b/data/web/lang/lang.cs.php index cd54b75b..81142fe6 100644 --- a/data/web/lang/lang.cs.php +++ b/data/web/lang/lang.cs.php @@ -715,6 +715,7 @@ $lang['quarantine']['subj'] = "Předmět"; $lang['quarantine']['recipients'] = "Příjemci"; $lang['quarantine']['text_plain_content'] = "Obsah (text/plain)"; $lang['quarantine']['text_from_html_content'] = "Obsah (konvertované html)"; +$lang['quarantine']['spam_score'] = "Skóre"; $lang['quarantine']['atts'] = "Přílohy"; $lang['warning']['fuzzy_learn_error'] = "Chyba při učení Fuzzy hash: %s"; $lang['danger']['spam_learn_error'] = "Chyba při učení spamu: %s"; diff --git a/data/web/lang/lang.de.php b/data/web/lang/lang.de.php index 24315313..4da8bd6f 100644 --- a/data/web/lang/lang.de.php +++ b/data/web/lang/lang.de.php @@ -745,6 +745,7 @@ $lang['quarantine']['neutral_danger'] = "Neutral/ohne Bewertung"; $lang['quarantine']['medium_danger'] = "Mittlere Gefahr"; $lang['quarantine']['high_danger'] = "Hohe Gefahr"; $lang['quarantine']['danger'] = "Gefahr"; +$lang['quarantine']['spam_score'] = "Bewertung"; $lang['quarantine']['qhandler_success'] = "Aktion wurde an das System übergeben. Sie dürfen dieses Fenster nun schließen."; $lang['warning']['fuzzy_learn_error'] = "Fuzzy Lernfehler: %s"; $lang['danger']['spam_learn_error'] = "Spam Lernfehler: %s"; diff --git a/data/web/lang/lang.en.php b/data/web/lang/lang.en.php index f8e285e4..e0b09b85 100644 --- a/data/web/lang/lang.en.php +++ b/data/web/lang/lang.en.php @@ -767,6 +767,7 @@ $lang['quarantine']['neutral_danger'] = "Neutral/no rating"; $lang['quarantine']['medium_danger'] = "Medium danger"; $lang['quarantine']['high_danger'] = "High"; $lang['quarantine']['danger'] = "Danger"; +$lang['quarantine']['spam_score'] = "Score"; $lang['quarantine']['confirm_delete'] = "Confirm the deletion of this element."; $lang['quarantine']['qhandler_success'] = "Request successfully sent to the system. You can now close the window."; diff --git a/data/web/lang/lang.nl.php b/data/web/lang/lang.nl.php index 920e3e93..13506cb1 100644 --- a/data/web/lang/lang.nl.php +++ b/data/web/lang/lang.nl.php @@ -750,6 +750,7 @@ $lang['quarantine']['neutral_danger'] = "Neutraal/geen beoordeling"; $lang['quarantine']['medium_danger'] = "Middelmatig risico"; $lang['quarantine']['high_danger'] = "Hoog risico"; $lang['quarantine']['danger'] = "Risico"; +$lang['quarantine']['spam_score'] = "Score"; $lang['quarantine']['confirm_delete'] = "Bevestig de verwijdering van dit item."; $lang['quarantine']['qhandler_success'] = "Verzoek met succes verzonden naar het systeem. Je kunt het venster nu veilig sluiten.";