Add Message ID on Web Interface

General eFa discussion
Post Reply
woundride
Posts: 51
Joined: 19 Mar 2015 14:34
Location: France
Contact:

Add Message ID on Web Interface

Post 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 2844 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.
Post Reply