/plugins/newmail/setup.php

Description

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).

Functions
newmail_optpage_register_block (line 50)

Register newmail option block

void newmail_optpage_register_block ()
newmail_plugin (line 84)

Insert needed data in left_main

void newmail_plugin ()
newmail_pref (line 66)

Load newmail plugin settings

void newmail_pref ()
newmail_sav (line 58)

Save newmail plugin settings

void newmail_sav ()
newmail_set_loadinfo (line 76)

Set loadinfo data

Used by option page when saving settings.

void newmail_set_loadinfo ()
squirrelmail_plugin_init_newmail (line 34)

Init newmail plugin

void squirrelmail_plugin_init_newmail ()

Documentation generated on Sat, 07 Oct 2006 16:13:32 +0300 by phpDocumentor 1.3.0RC6