Changeset a561cd3 in github


Ignore:
Timestamp:
Oct 19, 2011 2:35:29 AM (19 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
Children:
c041d57
Parents:
01169b6
Message:
  • Fix handling of folder creation error while moving/copying message
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_imap.php

    rdfc79b3 ra561cd3  
    25872587        // make sure mailbox exists 
    25882588        if ($to_mbox != 'INBOX' && !$this->mailbox_exists($to_mbox)) { 
    2589             if (in_array($to_mbox, $this->default_folders)) 
    2590                 $this->create_mailbox($to_mbox, true); 
    2591             else 
     2589            if (in_array($to_mbox, $this->default_folders)) { 
     2590                if (!$this->create_mailbox($to_mbox, true)) { 
     2591                    return false; 
     2592                } 
     2593            } 
     2594            else { 
    25922595                return false; 
     2596            } 
    25932597        } 
    25942598 
     
    26682672        // make sure mailbox exists 
    26692673        if ($to_mbox != 'INBOX' && !$this->mailbox_exists($to_mbox)) { 
    2670             if (in_array($to_mbox, $this->default_folders)) 
    2671                 $this->create_mailbox($to_mbox, true); 
    2672             else 
     2674            if (in_array($to_mbox, $this->default_folders)) { 
     2675                if (!$this->create_mailbox($to_mbox, true)) { 
     2676                    return false; 
     2677                } 
     2678            } 
     2679            else { 
    26732680                return false; 
     2681            } 
    26742682        } 
    26752683 
Note: See TracChangeset for help on using the changeset viewer.