/**
* options_folder.php
*
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Displays all options relating to folders
$imapConnection =
sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$boxes = sqimap_mailbox_list($imapConnection);
- sqimap_logout($imapConnection);
/* Build a simple array into which we will build options. */
$optgrps = array();
$optgrps[SMOPT_GRP_FOLDERSELECT] = _("Folder Selection Options");
$optvals[SMOPT_GRP_FOLDERSELECT] = array();
- $delim = sqimap_get_delimiter();
+ $delim = sqimap_get_delimiter($imapConnection);
$optvals[SMOPT_GRP_FOLDERSELECT][] = array(
'name' => 'mailbox_select_style',
'caption' => _("Selection List Style"),
'type' => SMOPT_TYPE_STRLIST,
'refresh' => SMOPT_REFRESH_NONE,
- 'posvals' => array( 0 => _("Long: ") . '"Folder' . $delim . 'Subfolder"',
- 1 => _("Indented: ") . '" ' . 'Subfolder"',
- 2 => _("Delimited: ") . '". ' . 'Subfolder"')
+ 'posvals' => array( 0 => _("Long: ") . '"' . _("Folder") . $delim . _("Subfolder") . '"',
+ 1 => _("Indented: ") . '" ' . _("Subfolder") . '"',
+ 2 => _("Delimited: ") . '". ' . _("Subfolder") . '"')
);
/* Assemble all this together and return it as our result. */
'grps' => $optgrps,
'vals' => $optvals
);
+ sqimap_logout($imapConnection);
return ($result);
}