Changeset f1ce516 in github


Ignore:
Timestamp:
Mar 4, 2010 10:34:32 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
c1db394b
Parents:
a039c62
Message:
  • Fix inconsistent behaviour of 'delete_always' option (#1486299)
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    ra039c62 rf1ce516  
    22=========================== 
    33 
     4- Fix inconsistent behaviour of 'delete_always' option (#1486299) 
    45- Fix deleting all messages from last list page (#1486293) 
    56- Flag original messages when sending a draft (#1486203) 
  • config/main.inc.php.dist

    rb975da2 rf1ce516  
    362362/** 
    363363 * 'Delete always' 
    364  * This setting reflects if mail should be always marked as deleted, 
    365  * even if moving to "Trash" fails. This is necessary in some setups 
    366  * because a) people may not have a Trash folder or b) they are over 
    367  * quota (and Trash is included in the quota). 
    368  * 
    369  * This is a failover setting for iil_C_Move when a message is moved 
    370  * to the Trash. 
     364 * This setting reflects if mail should be always deleted 
     365 * when moving to Trash fails. This is necessary in some setups 
     366 * when user is over quota and Trash is included in the quota. 
    371367 */ 
    372368$rcmail_config['delete_always'] = false; 
  • program/include/rcube_imap.php

    ra961838 rf1ce516  
    17941794    $iil_move = iil_C_Move($this->conn, join(',', $a_uids), $from_mbox, $to_mbox); 
    17951795    $moved = !($iil_move === false || $iil_move < 0); 
    1796      
     1796 
    17971797    // send expunge command in order to have the moved message 
    17981798    // really deleted from the source mailbox 
     
    18031803    } 
    18041804    // moving failed 
    1805     else if (rcmail::get_instance()->config->get('delete_always', false)) { 
    1806       return iil_C_Delete($this->conn, $from_mbox, join(',', $a_uids)); 
     1805    else if ($config->get('delete_always', false) && $tbox == $config->get('trash_mbox')) { 
     1806      return $this->delete_message($a_uids, $fbox); 
    18071807    } 
    18081808 
Note: See TracChangeset for help on using the changeset viewer.