- fix creating default folder when moving message and target folder doesn't exists

release-0.6
alecpl 15 years ago
parent 90b1cb2efc
commit bc04a7ee78

@ -1711,8 +1711,8 @@ class rcube_imap
// make sure mailbox exists
if ($to_mbox != 'INBOX' && !in_array($to_mbox, $this->_list_mailboxes()))
{
if (in_array($to_mbox_in, $this->default_folders))
$this->create_mailbox($to_mbox_in, TRUE);
if (in_array($tbox, $this->default_folders))
$this->create_mailbox($tbox, TRUE);
else
return FALSE;
}

Loading…
Cancel
Save