summaryrefslogtreecommitdiff
path: root/plugins/managesieve/managesieve.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-17 13:15:24 +0000
committeralecpl <alec@alec.pl>2009-09-17 13:15:24 +0000
commit1029fc8de61bfeefb0f75a3fcb44f4eeb3e219f3 (patch)
tree5f755643a7ad1f2c0fad530ad6394d0707aecb16 /plugins/managesieve/managesieve.php
parent00a833811ebbba72b48aa90dae81833d3e4a50bc (diff)
- Support multiple managesieve hosts using %h variable in managesieve_host option (#1486135)
Diffstat (limited to 'plugins/managesieve/managesieve.php')
-rw-r--r--plugins/managesieve/managesieve.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php
index bfbded94e..df1be8fe2 100644
--- a/plugins/managesieve/managesieve.php
+++ b/plugins/managesieve/managesieve.php
@@ -62,7 +62,7 @@ class managesieve extends rcube_plugin
// try to connect to managesieve server and to fetch the script
$this->sieve = new rcube_sieve($_SESSION['username'],
$this->rc->decrypt($_SESSION['password']),
- $this->rc->config->get('managesieve_host', 'localhost'),
+ str_replace('%h', $_SESSION['imap_host'], $this->rc->config->get('managesieve_host', 'localhost')),
$this->rc->config->get('managesieve_port', 2000),
$this->rc->config->get('managesieve_usetls', false),
$this->rc->config->get('managesieve_disabled_extensions'));