$attachment_dir = $data_dir;
-// This is the default size of the folder list. Default is 200,
+// This is the default size of the folder list. Default is 150,
// but you can set it to whatever you wish.
- $default_left_size = 200;
+ $default_left_size = 150;
// Some IMAP servers allow a username (like "bob") to log in if they use
// uppercase in their name (like "Bob" or "BOB"). This creates extra
$size = 0;
}
- $data = Array();
+ $data = array();
$total_size = 0;
$continue = true;
if ($total_size == $size) {
$data[] = $read;
$read = fgets($imap_stream, 9096);
- $read = fgets($imap_stream, 9096);
+ while (!ereg("^$pre (OK|BAD|NO)(.*)$", $read, $regs)) {
+ $read = fgets($imap_stream, 9096);
+ }
$continue = false;
} else if ($total_size > $size) {
$difference = $total_size - $size;
// loop through until we find a space or an end parenthesis
$pos = 0;
$char = substr($structure, $pos, 1);
+ $text = "";
while ($char != " " && $char != ")" && $pos < strlen($structure)) {
$text .= $char;
$pos++;