squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

left_main.php File Reference

Go to the source code of this file.

Namespaces

 squirrelmail
 

Functions

 formatMailboxName ($imapConnection, $box_array)
 
 compute_folder_children (&$parbox, $boxcount)
 
 create_collapse_link ($boxnum)
 
 create_unseen_string ($boxName, $boxArray, $imapConnection, $unseen_type)
 
 is_parent_box ($curbox_name, $parbox_name)
 

Variables

const PAGE_NAME 'left_main'
 
const SM_PATH '../'
 
const SM_BOX_UNCOLLAPSED 0
 
const SM_BOX_COLLAPSED 1
 
 $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10)
 
if(isset($left_refresh) &&($left_refresh !='') &&!stristr($left_refresh, 'none')) else
 
 if ( $auto_create_special &&! $auto_create_done)
 
if(!isset($boxes)) $curbox = 0
 
 $boxcount = count($boxes)
 

Function Documentation

◆ compute_folder_children()

compute_folder_children ( $parbox,
  $boxcount 
)

Recursive function that computes the collapsed status and parent (or not parent) status of this box, and the visiblity and collapsed status and parent (or not parent) status for all children boxes.

Definition at line 124 of file left_main.php.

References $boxcount, $boxes, $collapse_folders, $data_dir, $username, getPref(), is_parent_box(), SM_BOX_COLLAPSED, and SM_BOX_UNCOLLAPSED.

◆ create_collapse_link()

create_collapse_link (   $boxnum)

Create the link for a parent folder that will allow that parent folder to either be collapsed or expaned, as is currently appropriate.

Definition at line 174 of file left_main.php.

References $boxes, $color, $imapConnection, $mailbox, $unseen_notify, and SM_BOX_COLLAPSED.

◆ create_unseen_string()

create_unseen_string (   $boxName,
  $boxArray,
  $imapConnection,
  $unseen_type 
)

create_unseen_string:

Create unseen and total message count for both this folder and it's subfolders.

Parameters
string$boxNamename of the current mailbox
array$boxArrayarray for the current mailbox
$imapConnectioncurrent imap connection in use
Returns
array[0] unseen message string (for display)
array[1] unseen message count

Definition at line 204 of file left_main.php.

References $boxes, $color, $imapConnection, $unseen_cum, $unseen_type, SM_BOX_COLLAPSED, and sqimap_status_messages().

Referenced by formatMailboxName().

◆ formatMailboxName()

◆ is_parent_box()

is_parent_box (   $curbox_name,
  $parbox_name 
)

This simple function checks if a box is another box's parent.

Definition at line 277 of file left_main.php.

Referenced by compute_folder_children().

Variable Documentation

◆ $boxcount

$boxcount = count($boxes)

Definition at line 420 of file left_main.php.

Referenced by compute_folder_children().

◆ $curbox

if (!isset( $boxes)) $curbox = 0

Definition at line 419 of file left_main.php.

◆ $imapConnection

$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10)

Definition at line 311 of file left_main.php.

Referenced by create_collapse_link(), create_unseen_string(), and formatMailboxName().

◆ else

if (isset( $left_refresh) &&( $left_refresh !='') &&!stristr( $left_refresh, 'none')) else
Initial value:
{
$xtra = ''

Using stristr since older preferences may contain "None" and "none".

Definition at line 319 of file left_main.php.

◆ if

if($date_format !=6)

Definition at line 326 of file left_main.php.

◆ PAGE_NAME

const PAGE_NAME 'left_main'

This is the left_main page

Definition at line 16 of file left_main.php.

◆ SM_BOX_COLLAPSED

const SM_BOX_COLLAPSED 1

◆ SM_BOX_UNCOLLAPSED

const SM_BOX_UNCOLLAPSED 0

Definition at line 32 of file left_main.php.

Referenced by compute_folder_children().

◆ SM_PATH

const SM_PATH '../'

Path for SquirrelMail required files. @ignore

Definition at line 22 of file left_main.php.

$xtra
for($i=1; $i< $count; $i++) $xtra
Definition: message_details_bottom.php:253