$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"),
'grps' => $optgrps,
'vals' => $optvals
);
+ sqimap_logout($imapConnection);
return ($result);
}