alecpl
2010-05-10 25fdec592dc0a37c6ccb0d566e288807aacf9114
program/include/rcube_imap.php
@@ -1589,7 +1589,7 @@
            if ($headers->uid && $headers->id)
                $this->uid_id_map[$mailbox][$headers->uid] = $headers->id;
            $this->add_message_cache($mailbox.'.msg', $headers->id, $headers, NULL, true);
            $this->add_message_cache($mailbox.'.msg', $headers->id, $headers, NULL);
        }
        return $headers;
@@ -2774,6 +2774,10 @@
            if ($mbox_name == 'INBOX')
                return true;
            $key = $subscription ? 'subscribed' : 'existing';
            if (is_array($this->icache[$key]) && in_array($mbox_name, $this->icache[$key]))
                return true;
            if ($subscription) {
                $a_folders = $this->conn->listSubscribed($this->mod_mailbox(''), $mbox_name);
            }
@@ -2782,6 +2786,7 @@
           }
           
            if (is_array($a_folders) && in_array($this->mod_mailbox($mbox_name), $a_folders)) {
                $this->icache[$key][] = $mbox_name;
                return true;
            }
        }