| | |
| | | unset($this->data['STATUS:'.$to]); |
| | | unset($this->data['STATUS:'.$from]); |
| | | |
| | | $r = $this->execute('UID MOVE', array( |
| | | $result = $this->execute('UID MOVE', array( |
| | | $this->compressMessageSet($messages), $this->escape($to)), |
| | | self::COMMAND_NORESPONSE); |
| | | } |
| | | // use COPY + STORE +FLAGS.SILENT \Deleted + EXPUNGE |
| | | else { |
| | | $r = $this->copy($messages, $from, $to); |
| | | |
| | | if ($r) { |
| | | return ($result == self::ERROR_OK); |
| | | } |
| | | |
| | | // use COPY + STORE +FLAGS.SILENT \Deleted + EXPUNGE |
| | | $result = $this->copy($messages, $from, $to); |
| | | |
| | | if ($result) { |
| | | // Clear internal status cache |
| | | unset($this->data['STATUS:'.$from]); |
| | | |
| | | $r = $this->flag($from, $messages, 'DELETED'); |
| | | $result = $this->flag($from, $messages, 'DELETED'); |
| | | |
| | | if ($messages == '*') { |
| | | // CLOSE+SELECT should be faster than EXPUNGE |
| | |
| | | $this->expunge($from, $messages); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return $r; |
| | | return $result; |
| | | } |
| | | |
| | | /** |