Page 1 of 1

Add Message ID on Web Interface

Posted: 15 Jun 2015 11:58
by woundride
Hi,

If you're interested to add "message ID" on web interface to see quickly a message, it's very easy !
add_id_web_interface.jpg
add_id_web_interface.jpg (358.22 KiB) Viewed 3265 times
You can modify status.php and quarantine.php in

Code: Select all

/var/www/html/mailscanner
directory.

You add in SQL request the ID :

default :

Code: Select all

$sql .= "
 to_address,
 subject,
 size as size,
 isspam,
 ishighspam,
 spamwhitelisted,
 spamblacklisted,
 virusinfected,
 nameinfected,
 otherinfected,
 sascore,
 report,
 ismcp,
 issamcp,
 ishighmcp,
 mcpsascore,
 '' AS status
FROM
 maillog
WHERE
 " . $_SESSION['global_filter'] . "
ORDER BY
 date DESC,
 time DESC
LIMIT " . MAX_RESULTS;
with ID :

Code: Select all

$sql .= "
 to_address,
 subject,
 size as size,
 isspam,
 ishighspam,
 spamwhitelisted,
 spamblacklisted,
 virusinfected,
 nameinfected,
 otherinfected,
 sascore,
 report,
 ismcp,
 issamcp,
 ishighmcp,
 mcpsascore,
 id,
 '' AS status
FROM
 maillog
WHERE
 " . $_SESSION['global_filter'] . "
ORDER BY
 date DESC,
 time DESC
LIMIT " . MAX_RESULTS;
automaticaly an URL link is created with the ID, it's very easy to navigate.

Enjoy.

Charles.