- Timestamp:
- 10/21/10 10:11:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/inc/class.imap_functions.inc.php
r3380 r3385 50 50 } 51 51 // BEGIN of functions. 52 function open_mbox($folder = False )52 function open_mbox($folder = False,$force_die=true) 53 53 { 54 54 if (is_resource($this->mbox)) 55 55 return $this->mbox; 56 56 $folder = mb_convert_encoding($folder, "UTF7-IMAP","ISO_8859-1"); 57 $this->mbox = @imap_open("{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$folder, $this->username, $this->password) or die(serialize(array('imap_error' => $this->parse_error(imap_last_error())))); 57 if($force_die) 58 $this->mbox = @imap_open("{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$folder, $this->username, $this->password) or die(serialize(array('imap_error' => $this->parse_error(imap_last_error())))); 59 else 60 $this->mbox = @imap_open("{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$folder, $this->username, $this->password); 58 61 return $this->mbox; 59 62 }
Note: See TracChangeset
for help on using the changeset viewer.