newmail.php
Copyright (c) 2000 by Michael Huttinger
Quite a hack -- but my first attempt at a plugin. We were looking for a way to play a sound when there was unseen messages to look at. Nice for users who keep the squirrel mail window up for long periods of time and want to know when mail arrives.
Basically, I hacked much of left_main.php into a plugin that goes through each mail folder and increments a flag if there are unseen messages. If the final count of unseen folders is > 0, then we play a sound (using the HTML at the far end of this script).
This was tested with IE5.0 - but I hear Netscape works well, too (with a plugin).
Register newmail option block
Set loadinfo data
Used by option page when saving settings.
Init newmail plugin
Documentation generated on Mon, 13 Jan 2020 04:23:32 +0100 by phpDocumentor 1.4.3