X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fnewmail%2Fsetup.php;h=c003fe9a7078ab3d9fd357aded5ce5ec61cddd30;hp=ab52d7b6f7b5451756e4124e2e5187da8267720d;hb=975e3687c6fec0634f7e5b4a56a68f33ab92ee4c;hpb=cc61478a38c0d56346511026c34063262eb989c6 diff --git a/plugins/newmail/setup.php b/plugins/newmail/setup.php index ab52d7b6..c003fe9a 100644 --- a/plugins/newmail/setup.php +++ b/plugins/newmail/setup.php @@ -1,26 +1,28 @@ 0, then we play a sound (using the HTML at the - * far end of this script). + * 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. * - * This was tested with IE5.0 - but I hear Netscape works well, - * too (with a plugin). + * 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). * - * $Id$ + * This was tested with IE5.0 - but I hear Netscape works well, + * too (with a plugin). * + * $Id$ */ function CheckNewMailboxSound($imapConnection, $mailbox, $real_box, $delimeter, $unseen, &$total_unseen) { @@ -195,7 +197,7 @@ if ($newmail_changetitle) { echo "