newmail.php
Copyright (c) 1999-2020 The SquirrelMail Project Team Copyright (c) 2000 by Michael Huttinger Licensed under the GNU GPL. For full terms see the file COPYING.
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).
Checks if mailbox contains new messages.
Set loadinfo data
Used by option page when saving settings.
Documentation generated on Mon, 13 Jan 2020 04:25:18 +0100 by phpDocumentor 1.4.3