Ilya Evseev wrote:
> function move_message($uids, $to_mbox, $from_mbox='')
> {
> $to_mbox = $this->_mod_mailbox($to_mbox);
> $from_mbox = $from_mbox ? $this->_mod_mailbox($from_mbox) :
> $this->mailbox;
>
> // 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);
> else
> return FALSE; // This always happens when Trash does not exists!
> }
>
> What is $to_mbox_in variable in this code?
> It is never assigned and is always empty (while $to_mbox == 'Trash').
Try this patch.
--- rcube_imap.php (wersja 3113)
+++ rcube_imap.php (kopia robocza)
@@ -1711,8 +1711,8 @@
// 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;
}
--
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Project Developer http://roundcube.net
_______________________________________________
List info: http://lists.roundcube.net/users/