/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_info (line 107)

Returns info about this plugin

void newmail_info ()
newmail_optpage_register_block (line 59)

Register newmail option block

void newmail_optpage_register_block ()
newmail_plugin (line 97)

Insert needed data in left_main

void newmail_plugin ()
newmail_pref (line 77)

Load newmail plugin settings

void newmail_pref ()
newmail_sav (line 68)

Save newmail plugin settings

void newmail_sav ()
newmail_set_loadinfo (line 88)

Set loadinfo data

Used by option page when saving settings.

void newmail_set_loadinfo ()
newmail_version (line 127)

Returns version info about this plugin

void newmail_version ()
squirrelmail_plugin_init_newmail (line 34)

Init newmail plugin

void squirrelmail_plugin_init_newmail ()

Documentation generated on Wed, 23 Jul 2014 04:19:25 +0200 by phpDocumentor 1.4.3