Fix automatic creation of (prefixed) folders

release-0.6
thomascube 16 years ago
parent c1b3c4cc31
commit a057930096

@ -1383,16 +1383,16 @@ class rcube_imap
*/ */
function move_message($uids, $to_mbox, $from_mbox='') function move_message($uids, $to_mbox, $from_mbox='')
{ {
$to_mbox = stripslashes($to_mbox); $to_mbox_in = stripslashes($to_mbox);
$from_mbox = stripslashes($from_mbox); $from_mbox = stripslashes($from_mbox);
$to_mbox = $this->_mod_mailbox($to_mbox); $to_mbox = $this->_mod_mailbox($to_mbox_in);
$from_mbox = $from_mbox ? $this->_mod_mailbox($from_mbox) : $this->mailbox; $from_mbox = $from_mbox ? $this->_mod_mailbox($from_mbox) : $this->mailbox;
// make sure mailbox exists // make sure mailbox exists
if (!in_array($to_mbox, $this->_list_mailboxes())) if (!in_array($to_mbox, $this->_list_mailboxes()))
{ {
if (in_array($to_mbox, $this->default_folders)) if (in_array($to_mbox_in, $this->default_folders))
$this->create_mailbox($to_mbox, TRUE); $this->create_mailbox($to_mbox_in, TRUE);
else else
return FALSE; return FALSE;
} }

Loading…
Cancel
Save