public function MoveMessages($vars)
{
$indices = $GLOBALS['imp_imap']->ob()->utils->fromSequenceString($vars->uid);
- if (!$vars->tofld || empty($indices)) {
+ if (!$vars->mboxto || empty($indices)) {
return false;
}
}
$imp_message = IMP_Message::singleton();
- $result = $imp_message->copy($vars->tofld, 'move', $indices);
+ $result = $imp_message->copy($vars->mboxto, 'move', $indices);
if ($result) {
$result = $this->_generateDeleteResult($vars, $indices, $change);
/* Update poll information for destination folder if necessary.
* Poll information for current folder will be added by
* _generateDeleteResult() call above. */
- if ($poll = $this->_getPollInformation($vars->tofld)) {
+ if ($poll = $this->_getPollInformation($vars->mboxto)) {
$result->poll = array_merge(isset($result->poll) ? $result->poll : array(), $poll);
}
} else {