Ignore:
Timestamp:
04/04/11 16:54:18 (13 years ago)
Author:
thiagoaos
Message:

Ticket #1704 - Corrigido a atualizacao e ordenacao quando um rascunho eh salvo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/class.imap_functions.inc.php

    r3932 r3955  
    16331633                        * não preciso reimplementar o método utilizando o fetchheader. 
    16341634                        */ 
    1635                      
    1636                         $tempHeader = @imap_fetchheader($this->mbox, imap_msgno($this->mbox, $msg_number)); 
     1635     
     1636                        $tempHeader = @imap_fetchheader($this->mbox, imap_msgno($this->mbox, $msg_number)); 
    16371637                        $flag = preg_match('/importance *: *(.*)\r/i', $tempHeader, $importance); 
    16381638                        $return[$i]['Importance'] = $flag==0?"Normal":$importance[1]; 
     
    16461646 
    16471647                        $return[$i]['msg_number']       = $msg_number; 
     1648                         
     1649                        //get the next msg number to append this msg in the view in a correct place 
     1650                        $msg_key_position = array_search($msg_number, $msgs_in_the_server); 
     1651                         
     1652                        if($msg_key_position !== false && array_key_exists($msg_key_position + 1) !== false) 
     1653                                $return[$i]['next_msg_number'] = $msgs_in_the_server[$msg_key_position + 1]; 
    16481654 
    16491655                        $return[$i]['msg_folder']       = $folder; 
    1650                         // Atribui o tipo (normal, signature ou cipher) ao campo Content-Type 
     1656                        // Atribui o tipo (normal, signature ou cipher) ao campo Content-Type 
    16511657                        $return[$i]['ContentType']  = $this->getMessageType($msg_number, $tempHeader); 
    16521658                        $return[$i]['Recent']           = $header->Recent; 
Note: See TracChangeset for help on using the changeset viewer.