Small improvements in APPEND command handling

pull/23/head
Aleksander Machniak 12 years ago
parent 24fa5d3154
commit b5652641be

@ -2222,6 +2222,10 @@ class rcube_imap extends rcube_storage
$folder = $this->folder;
}
if (!$this->check_connection()) {
return false;
}
// make sure folder exists
if ($this->folder_exists($folder)) {
if ($is_file) {

@ -2538,7 +2538,7 @@ class rcube_imap_generic
{
unset($this->data['APPENDUID']);
if (!$mailbox) {
if ($mailbox === null || $mailbox === '') {
return false;
}
@ -2603,7 +2603,7 @@ class rcube_imap_generic
{
unset($this->data['APPENDUID']);
if (!$mailbox) {
if ($mailbox === null || $mailbox === '') {
return false;
}
@ -2612,6 +2612,7 @@ class rcube_imap_generic
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;

Loading…
Cancel
Save