Changeset 5187 for branches


Ignore:
Timestamp:
11/18/11 10:48:45 (8 years ago)
Author:
brunocosta
Message:

Ticket #2306 - Ignora warning do imap ao usar o append de emails.

File:
1 edited

Legend:

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

    r5119 r5187  
    40554055        $imap_options = '/notls/novalidate-cert'; 
    40564056        $mbox_stream = imap_open("{".$imap_server.":".$imap_port.$imap_options."}".$folder, $username, $password); 
    4057         if(imap_last_error()) 
     4057                if(imap_last_error() && imap_last_error() != "SECURITY PROBLEM: insecure server advertised AUTH=PLAIN") 
    40584058        { 
    40594059            imap_createmailbox($mbox_stream,imap_utf7_encode("{".$imap_server."}".$folder)); 
    4060         } 
     4060        } 
    40614061        if($timestamp){ 
    40624062            $tempDir = ini_get("session.save_path"); 
     
    40714071        } 
    40724072        $status = imap_status($mbox_stream, "{".$this->imap_server.":".$this->imap_port."}".$folder, SA_UIDNEXT); 
    4073                          
     4073 
    40744074        $return['msg_no'] = $status->uidnext - 1; 
    4075         $return['error'] = imap_last_error(); 
    4076         if(!$return['error'] && $flags != '' ){ 
     4075        $return['error'] = ''; 
     4076        if(imap_last_error() && imap_last_error() != "SECURITY PROBLEM: insecure server advertised AUTH=PLAIN") 
     4077            $return['error'] = imap_last_error(); 
     4078 
     4079        if(!$return['error'] && $flags != '' ){ 
    40774080 
    40784081                  $flags_array=explode(':',$flags); 
Note: See TracChangeset for help on using the changeset viewer.