Source for file setup.php
Documentation is available at setup.php
* setup.php -- Sent Subfolders Setup File
* This is a standard SquirrelMail 1.2 API for plugins.
* @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: setup.php 14845 2020-01-07 08:09:34Z pdontthink $
* @subpackage sent_subfolders
* Adds plugin to SquirrelMail's hooks
/* Standard initialization API. */
global $squirrelmail_plugin_hooks;
/* The hooks to make the sent subfolders display correctly. */
$squirrelmail_plugin_hooks['check_handleAsSent_result']['sent_subfolders']
=
'sent_subfolders_check_handleAsSent';
/* The hooks to automatically update sent subfolders. */
// hook isn't in 1.5.x; isn't absolutely necessary to run on the folder list anyway
// $squirrelmail_plugin_hooks['left_main_before']['sent_subfolders']
// = 'sent_subfolders_update_sentfolder';
$squirrelmail_plugin_hooks['compose_send']['sent_subfolders']
=
'sent_subfolders_update_sentfolder';
/* The hooks to handle sent subfolders options. */
$squirrelmail_plugin_hooks['optpage_loadhook_folder']['sent_subfolders']
=
'sent_subfolders_optpage_loadhook_folders';
/* mark base sent folder as special mailbox */
$squirrelmail_plugin_hooks['special_mailbox']['sent_subfolders']
=
'sent_subfolders_special_mailbox';
include_once(SM_PATH .
'plugins/sent_subfolders/functions.php');
* Adds sent_subfolders options in folder preferences
include_once(SM_PATH .
'plugins/sent_subfolders/functions.php');
* Update sent_subfolders settings
* function updates default sent folder value and
* creates required imap folders
include_once(SM_PATH .
'plugins/sent_subfolders/functions.php');
* detects if mailbox is part of sent_subfolders
* @param string $mb imap folder name
* @return boolean 1 - is part of sent_subfolders, 0 - is not part of sent_subfolders
include_once(SM_PATH .
'plugins/sent_subfolders/functions.php');
Documentation generated on Mon, 13 Jan 2020 04:23:32 +0100 by phpDocumentor 1.4.3