Alright. It does work in IE7, IE6 and FireFox, but I have not used it for more than a few minutes in IE so do report back if there's crashes.
Save the below code as
newAlert.js and upload it to your
/pogram/js/ directory.
function makeDing()
{
var flashObject = document.createElement("embed");
flashObject.setAttribute("type", "application/x-shockwave-flash");
flashObject.setAttribute("id", "makeNewDing");
flashObject.setAttribute("src", "./program/newEmail.swf");
flashObject.setAttribute("width", "1");
flashObject.setAttribute("height", "1");
document.body.appendChild(flashObject);
}
Edit
main.inc in the
/program/include/ directory. Find this line:
$OUTPUT->include_script('app.js');
Add this line after it:
$OUTPUT->include_script('newAlert.js');
Save that.
Find the file
check_recent.inc in the
/program/steps/mail/ directory and find the line:
$commands .= sprintf("this.set_quota('%s');\n", $IMAP->get_quota());
After that line add:
$commands .= "makeDing();\n";
Save that.
Next download this .swf file
here (right click > save as). Upload it to the directory
/program/Refresh
(F5) your webmail page and send a new e-mail to yourself to test if it works.