Ignore:
Timestamp:
05/22/12 10:53:09 (12 years ago)
Author:
brunocosta
Message:

Ticket #2780 - Exclue msg do arquivamento local ao desarquivar.

File:
1 edited

Legend:

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

    r5873 r6264  
    360360                    //reconstrói o email 
    361361                    $email = implode("", file($params['FILES'][0]['tmp_name'])); 
     362                    $email = preg_replace('/(?<!\r)\n/', "\r\n", $email); 
    362363                    //coloca o email na pasta selecionada 
    363364                    $status = @imap_append($this->mbox, $folder, $email); 
     
    41804181        $timestamps = explode("#@#@#@",$params['timestamp']); 
    41814182        $flags = explode("#@#@#@",$params['flags']); 
     4183        $ids = explode("#@#@#@",$params['id']); 
     4184        $return = array();  
    41824185 
    41834186        foreach($sources as $index=>$src) 
     
    41874190                $source = $this->treat_base64_from_post($src); 
    41884191                $insert = $this->insert_email($source,$dest_folder,$timestamps[$index],$flags[$index]); 
     4192                if(!$insert['error']) 
     4193                    $return[] = $ids[$index]; 
    41894194            } 
    41904195        } 
    41914196         
    4192         return $insert; 
     4197        return $return; 
    41934198    } 
    41944199 
Note: See TracChangeset for help on using the changeset viewer.