Changeset 5187
- Timestamp:
- 11/18/11 09:48:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/expressoMail1_2/inc/class.imap_functions.inc.php
r5119 r5187 4055 4055 $imap_options = '/notls/novalidate-cert'; 4056 4056 $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") 4058 4058 { 4059 4059 imap_createmailbox($mbox_stream,imap_utf7_encode("{".$imap_server."}".$folder)); 4060 4060 } 4061 4061 if($timestamp){ 4062 4062 $tempDir = ini_get("session.save_path"); … … 4071 4071 } 4072 4072 $status = imap_status($mbox_stream, "{".$this->imap_server.":".$this->imap_port."}".$folder, SA_UIDNEXT); 4073 4073 4074 4074 $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 != '' ){ 4077 4080 4078 4081 $flags_array=explode(':',$flags);
Note: See TracChangeset
for help on using the changeset viewer.