|
|
@@ -156,6 +156,15 @@ class KerioApiSocket implements KerioApiSocketInterface {
|
|
|
* @throws KerioApiException
|
|
|
*/
|
|
|
public function send($data) {
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'kerioEmail',
|
|
|
+ __FUNCTION__,
|
|
|
+ $this->hostname,
|
|
|
+ 'Debug Kerio Api 1',
|
|
|
+ $data
|
|
|
+ );
|
|
|
+
|
|
|
if ($this->checkConnection()) {
|
|
|
@fwrite($this->socketHandler, $data);
|
|
|
return $this->read();
|
|
|
@@ -226,15 +235,6 @@ class KerioApiSocket implements KerioApiSocketInterface {
|
|
|
* @return boolean True on success
|
|
|
*/
|
|
|
public final function checkConnection() {
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $this,
|
|
|
- 'Debug Kerio Api 1',
|
|
|
- $hostname
|
|
|
- );
|
|
|
-
|
|
|
if ($this->checkHost()) {
|
|
|
$socket = @fsockopen($this->hostname, $this->port, $errno, $errstr, $this->timeout);
|
|
|
$this->errorCode = $errno;
|