Changeset 1424 in subversion


Ignore:
Timestamp:
May 26, 2008 6:11:19 AM (5 years ago)
Author:
till
Message:

fix to #1485083

Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/config/main.inc.php.dist

    r1395 r1424  
    329329$rcmail_config['logout_expunge'] = FALSE; 
    330330 
     331/** 
     332 * 'Delete always' 
     333 * This setting reflects if mail should be always marked as deleted, 
     334 * even if moving to "Trash" fails. This is necessary in some setups 
     335 * because a) people may not have a Trash folder or b) they are over 
     336 * quota (and Trash is included in the quota). 
     337 * 
     338 * This is a failover setting for iil_C_Move when a message is moved 
     339 * to the Trash, and not the same as "delete_right_away". 
     340 */ 
     341$rcmail_config['delete_always'] = true; 
     342 
    331343// end of config file 
    332344?> 
  • trunk/roundcubemail/program/include/main.inc

    r1378 r1424  
    280280    { 
    281281    $aliases['GB2312'] = 'GB18030'; 
    282     return iconv(($aliases[$from] ? $aliases[$from] : $from), ($aliases[$to] ? $aliases[$to] : $to) . "//IGNORE", $str); 
     282    $_iconv = iconv(($aliases[$from] ? $aliases[$from] : $from), ($aliases[$to] ? $aliases[$to] : $to) . "//IGNORE", $str); 
     283    if ($_iconv !== false) 
     284      { 
     285        return $_iconv; 
     286      } 
    283287    } 
    284288 
  • trunk/roundcubemail/program/lib/imap.inc

    r1419 r1424  
    19081908        if (iil_C_Select($conn, $mailbox)) { 
    19091909                $c = 0; 
    1910                 fputs($fp, "flg STORE $messages " . $mod . "FLAGS (" . $flag . ")\r\n"); 
     1910                $_line = "flg STORE $messages " . $mod . "FLAGS (" . $flag . ")\r\n"; 
     1911                trigger_error($_line, E_USER_WARNING); 
     1912                fputs($fp, $_line); 
    19111913                do { 
    19121914                        $line=chop(iil_ReadLine($fp, 100)); 
     
    20472049 
    20482050function iil_C_Move(&$conn, $messages, $from, $to) { 
    2049         $fp = $conn->fp; 
    2050          
    2051         if (!$from || !$to) { 
    2052             return -1; 
    2053         } 
    2054      
    2055         $r = iil_C_Copy($conn, $messages, $from,$to); 
    2056         if ($r==0) { 
    2057                 return iil_C_Delete($conn, $from, $messages); 
    2058         } 
     2051    global $CONFIG; 
     2052 
     2053    $fp = $conn->fp; 
     2054 
     2055    if (!$from || !$to) { 
     2056        return -1; 
     2057    } 
     2058    $r = iil_C_Copy($conn, $messages, $from,$to); 
     2059    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) { 
     2064        return iil_C_Delete($conn, $from, $messages); 
     2065    } 
    20592066    return $r; 
    20602067} 
Note: See TracChangeset for help on using the changeset viewer.