/plugins/sent_subfolders/functions.php

Description

setup.php -- Sent Subfolders Setup File

This is a standard SquirrelMail 1.2 API for plugins.

Constants
SMOPT_GRP_SENT_SUBFOLDERS = 'SENT_SUBFOLDERS' (line 19)
SMPREF_SENT_SUBFOLDERS_DISABLED = 0 (line 15)
SMPREF_SENT_SUBFOLDERS_MONTHLY = 3 (line 18)
SMPREF_SENT_SUBFOLDERS_QUARTERLY = 2 (line 17)
SMPREF_SENT_SUBFOLDERS_YEARLY = 1 (line 16)
Functions
save_option_sent_subfolders_base (line 147)

Update the folder settings/auto-create new subfolder

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

Saves sent_subfolder_options

void save_option_sent_subfolders_setting ( $option)
  • $option
sent_subfolders_check_handleAsSent_do (line 21)
void sent_subfolders_check_handleAsSent_do ( $mailbox)
  • $mailbox
sent_subfolders_optpage_loadhook_folders_do (line 50)

Adds sent_subfolders options in folder preferences

void sent_subfolders_optpage_loadhook_folders_do ()
sent_subfolders_special_mailbox_do (line 316)

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_do (string $mb)
  • string $mb: imap folder name
sent_subfolders_update_sentfolder_do (line 161)

Update sent_subfolders settings

function updates default sent folder value and creates required imap folders

void sent_subfolders_update_sentfolder_do ()
sent_subfolder_getQuarter (line 280)

Sets quarter subfolder names

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

Documentation generated on Sat, 30 Aug 2014 04:18:02 +0200 by phpDocumentor 1.4.3