Changeset 1430 in subversion


Ignore:
Timestamp:
May 27, 2008 2:41:46 AM (5 years ago)
Author:
thomasb
Message:

Moved RoundCube functionality from lib to rcube_imap class; removed debug log

Location:
trunk/roundcubemail/program
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap.php

    r1408 r1430  
    14151415    // send expunge command in order to have the moved message 
    14161416    // really deleted from the source mailbox 
    1417     if ($moved) 
    1418       { 
     1417    if ($moved) { 
    14191418      $this->_expunge($from_mbox, FALSE); 
    14201419      $this->_clear_messagecount($from_mbox); 
    14211420      $this->_clear_messagecount($to_mbox); 
    1422       } 
     1421    } 
     1422    // moving failed 
     1423    else if (rcmail::get_instance()->config->get('delete_always', false)) { 
     1424      return iil_C_Delete($this->conn, $from_mbox, join(',', $a_mids)); 
     1425    } 
    14231426       
    14241427    // remove message ids from search set 
  • trunk/roundcubemail/program/lib/imap.inc

    r1424 r1430  
    19081908        if (iil_C_Select($conn, $mailbox)) { 
    19091909                $c = 0; 
    1910                 $_line = "flg STORE $messages " . $mod . "FLAGS (" . $flag . ")\r\n"; 
    1911                 trigger_error($_line, E_USER_WARNING); 
    1912                 fputs($fp, $_line); 
     1910                fputs($fp, "flg STORE $messages " . $mod . "FLAGS (" . $flag . ")\r\n"); 
    19131911                do { 
    19141912                        $line=chop(iil_ReadLine($fp, 100)); 
     
    20492047 
    20502048function iil_C_Move(&$conn, $messages, $from, $to) { 
    2051     global $CONFIG; 
    2052  
    20532049    $fp = $conn->fp; 
    20542050 
     
    20582054    $r = iil_C_Copy($conn, $messages, $from,$to); 
    20592055    if ($r==0) { 
    2060         return iil_C_Delete($conn, $from, $messages); 
    2061     } 
    2062     // Copy failed 
    2063     if (isset($CONFIG['delete_always']) && $CONFIG['delete_always'] === true) { 
    20642056        return iil_C_Delete($conn, $from, $messages); 
    20652057    } 
Note: See TracChangeset for help on using the changeset viewer.