Aleksander Machniak
2012-08-31 b5652641be7ebf4f1b7f115333989d2c971275ea
Small improvements in APPEND command handling
2 files modified
9 ■■■■ changed files
program/include/rcube_imap.php 4 ●●●● patch | view | raw | blame | history
program/include/rcube_imap_generic.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcube_imap.php
@@ -2222,6 +2222,10 @@
            $folder = $this->folder;
        }
        if (!$this->check_connection()) {
            return false;
        }
        // make sure folder exists
        if ($this->folder_exists($folder)) {
            if ($is_file) {
program/include/rcube_imap_generic.php
@@ -2538,7 +2538,7 @@
    {
        unset($this->data['APPENDUID']);
        if (!$mailbox) {
        if ($mailbox === null || $mailbox === '') {
            return false;
        }
@@ -2603,7 +2603,7 @@
    {
        unset($this->data['APPENDUID']);
        if (!$mailbox) {
        if ($mailbox === null || $mailbox === '') {
            return false;
        }
@@ -2612,6 +2612,7 @@
        if (file_exists(realpath($path))) {
            $in_fp = fopen($path, 'r');
        }
        if (!$in_fp) {
            $this->setError(self::ERROR_UNKNOWN, "Couldn't open $path for reading");
            return false;