/plugins/sent_subfolders/setup.php

Description

setup.php -- Sent Subfolders Setup File

Copyright (c) 1999-2014 The SquirrelMail Project Team Licensed under the GNU GPL. For full terms see the file COPYING.

This is a standard Squirrelmail-1.2 API for plugins.

$Id: setup.php 14436 2014-01-21 21:30:59Z pdontthink $

Constants
SMOPT_GRP_SENT_SUBFOLDERS = 'SENT_SUBFOLDERS' (line 23)
SMPREF_SENT_SUBFOLDERS_DISABLED = 0 (line 19)
SMPREF_SENT_SUBFOLDERS_MONTHLY = 3 (line 22)
SMPREF_SENT_SUBFOLDERS_QUARTERLY = 2 (line 21)
SMPREF_SENT_SUBFOLDERS_YEARLY = 1 (line 20)
Functions
save_option_sent_subfolders_base (line 291)

Update the folder settings/auto-create new subfolder

void save_option_sent_subfolders_base ( $option)
  • $option
save_option_sent_subfolders_setting (line 164)

Saves sent_subfolder_options

void save_option_sent_subfolders_setting ( $option)
  • $option
sent_subfolders_check_handleAsSent (line 62)
void sent_subfolders_check_handleAsSent ()
sent_subfolders_load_prefs (line 87)

Loads sent_subfolders settings

void sent_subfolders_load_prefs ()
sent_subfolders_optpage_loadhook_folders (line 104)

Adds sent_subfolders options in folder preferences

void sent_subfolders_optpage_loadhook_folders ()
sent_subfolders_special_mailbox (line 341)

detects if mailbox is part of sent_subfolders

  • return: 1 - is part of sent_subfolders, 0 - is not part of sent_subfolders
boolean sent_subfolders_special_mailbox (string $mb)
  • string $mb: imap folder name
sent_subfolders_update_sentfolder (line 191)

Update sent_subfolders settings

function updates default sent folder value and creates required imap folders

void sent_subfolders_update_sentfolder ()
sent_subfolder_getQuarter (line 305)

Sets quarter subfolder names

  • return: quarter name (Q + number)
string sent_subfolder_getQuarter (string $month)
  • string $month: numeric month
squirrelmail_plugin_init_sent_subfolders (line 28)

Adds plugin to squirrelmail hooks

void squirrelmail_plugin_init_sent_subfolders ()

Documentation generated on Sat, 25 Oct 2014 04:21:53 +0200 by phpDocumentor 1.4.3