| @@ 101-101 (lines=1) @@ | ||
| 98 | { |
|
| 99 | if (Mail::$debug) error_log(__METHOD__.__LINE__.'->'.$this->mail_bo->profileID.'<->'.$_icServerID); |
|
| 100 | $this->mail_bo = Mail::getInstance(false,$_icServerID); |
|
| 101 | if (Mail::$debug) error_log(__METHOD__.__LINE__.' Fetched IC Server:'.$this->mail_bo->profileID.':'.function_backtrace()); |
|
| 102 | // no icServer Object: something failed big time |
|
| 103 | if (!isset($this->mail_bo->icServer)) exit; // ToDo: Exception or the dialog for setting up a server config |
|
| 104 | $this->mail_bo->openConnection($this->mail_bo->profileID); |
|
| @@ 149-149 (lines=1) @@ | ||
| 146 | ||
| 147 | try { |
|
| 148 | $this->mail_bo = Mail::getInstance(true,self::$icServerID, true, false, true); |
|
| 149 | if (Mail::$debug) error_log(__METHOD__.__LINE__.' Fetched IC Server:'.self::$icServerID.'/'.$this->mail_bo->profileID.':'.function_backtrace()); |
|
| 150 | //error_log(__METHOD__.__LINE__.array2string($this->mail_bo->icServer)); |
|
| 151 | ||
| 152 | // RegEx to minimize extra openConnection |
|
| @@ 241-241 (lines=1) @@ | ||
| 238 | ||
| 239 | if ($unsetCache) Mail::unsetCachedObjects(self::$icServerID); |
|
| 240 | $this->mail_bo = Mail::getInstance(false,self::$icServerID,true, false, true); |
|
| 241 | if (Mail::$debug) error_log(__METHOD__.__LINE__.' Fetched IC Server:'.self::$icServerID.'/'.$this->mail_bo->profileID.':'.function_backtrace()); |
|
| 242 | // no icServer Object: something failed big time |
|
| 243 | if (!isset($this->mail_bo) || !isset($this->mail_bo->icServer) || $this->mail_bo->icServer->ImapServerId<>$_icServerID) |
|
| 244 | { |
|