Changeset 1424 in subversion
- Timestamp:
- May 26, 2008 6:11:19 AM (5 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
-
config/main.inc.php.dist (modified) (1 diff)
-
program/include/main.inc (modified) (1 diff)
-
program/lib/imap.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/config/main.inc.php.dist
r1395 r1424 329 329 $rcmail_config['logout_expunge'] = FALSE; 330 330 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 331 343 // end of config file 332 344 ?> -
trunk/roundcubemail/program/include/main.inc
r1378 r1424 280 280 { 281 281 $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 } 283 287 } 284 288 -
trunk/roundcubemail/program/lib/imap.inc
r1419 r1424 1908 1908 if (iil_C_Select($conn, $mailbox)) { 1909 1909 $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); 1911 1913 do { 1912 1914 $line=chop(iil_ReadLine($fp, 100)); … … 2047 2049 2048 2050 function 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 } 2059 2066 return $r; 2060 2067 }
Note: See TracChangeset
for help on using the changeset viewer.
