diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-11-02 07:09:57 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-11-02 07:09:57 +0000 |
| commit | a9b4a030d159738f59e1d782dbf0d17b1a90115f (patch) | |
| tree | 47c5ae62b25f57e7129b4c62bb4d2ffca55f22ae /plugins/password/drivers | |
| parent | 6515a57bc35f675616d92eae312e67cbedf3225a (diff) | |
- hMail driver: Add possibility to connect to remote host (patch from Roland Liebl)
git-svn-id: https://svn.roundcube.net/trunk@4165 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/password/drivers')
| -rw-r--r-- | plugins/password/drivers/hmail.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/password/drivers/hmail.php b/plugins/password/drivers/hmail.php index 764b744fe..f7bddfd08 100644 --- a/plugins/password/drivers/hmail.php +++ b/plugins/password/drivers/hmail.php @@ -3,7 +3,7 @@ /** * hMailserver password driver * - * @version 1.1 + * @version 1.2 - 31.10.2010 * @author Roland 'rosali' Liebl <myroundcube@mail4us.net> * */ @@ -16,10 +16,15 @@ function password_save($curpass, $passwd) return PASSWORD_ERROR; try { - $obApp = new COM('hMailServer.Application'); + $remote = $rcmail->config->get('hmailserver_remote_dcom', false); + if ($remote) + $obApp = new COM("hMailServer.Application", $rcmail->config->get('hmailserver_server')); + else + $obApp = new COM("hMailServer.Application"); } catch (Exception $e) { - write_log('errors', "Plugin password (hmail driver):" . $e->getMessage() . ". This problem is often caused by DCOM permissions not being set."); + write_log('errors', "Plugin password (hmail driver):" . $e->getMessage() + . ". This problem is often caused by DCOM permissions not being set."); return PASSWORD_ERROR; } |
