Changeset 2635 in subversion


Ignore:
Timestamp:
Jun 11, 2009 4:40:39 AM (4 years ago)
Author:
alec
Message:
  • fix marking as DELETED with skip_deleted enabled
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/mark.inc

    r2615 r2635  
    3030{ 
    3131  $flag = $a_flags_map[$flag] ? $a_flags_map[$flag] : strtoupper($flag); 
     32 
     33  if ($flag == 'DELETED' && $CONFIG['skip_deleted'] && $_POST['_from'] != 'show') { 
     34    // count messages before changing anything 
     35    $old_count = $IMAP->messagecount(); 
     36    $old_pages = ceil($old_count / $IMAP->page_size); 
     37    $count = sizeof(explode(',', $uids)); 
     38  } 
     39 
    3240  $marked = $IMAP->set_flag($uids, $flag); 
    3341   
     
    6068        $OUTPUT->command('command', 'list'); 
    6169    } else { 
    62       // count messages before changing anything 
    63       $old_count = $IMAP->messagecount(); 
    64       $old_pages = ceil($old_count / $IMAP->page_size); 
    65  
    6670      // refresh saved search set after moving some messages 
    6771      if (($search_request = get_input_value('_search', RCUBE_INPUT_GPC)) && $IMAP->search_set) { 
Note: See TracChangeset for help on using the changeset viewer.