summaryrefslogtreecommitdiff
path: root/plugins/managesieve/managesieve.php
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-03 08:11:42 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-06-03 08:11:42 +0000
commitd52a5770fa69e96c3898479e752bded1bac58283 (patch)
treedf87bb9814677d99058932fc1f76d59df545c28e /plugins/managesieve/managesieve.php
parenta43d760ff43a38475367adf1f151d80cf17e61e0 (diff)
- Support %n and %d variables in managesieve_host option
git-svn-id: https://svn.roundcube.net/trunk@3703 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/managesieve/managesieve.php')
-rw-r--r--plugins/managesieve/managesieve.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php
index 97fcc4198..d6e3a363c 100644
--- a/plugins/managesieve/managesieve.php
+++ b/plugins/managesieve/managesieve.php
@@ -7,7 +7,7 @@
* It's clickable interface which operates on text scripts and communicates
* with server using managesieve protocol. Adds Filters tab in Settings.
*
- * @version 2.5
+ * @version 2.6
* @author Aleksander 'A.L.E.C' Machniak <alec@alec.pl>
*
* Configuration (see config.inc.php.dist)
@@ -62,12 +62,12 @@ class managesieve extends rcube_plugin
require_once($this->home . '/lib/Net/Sieve.php');
require_once($this->home . '/lib/rcube_sieve.php');
- $host = str_replace('%h', $_SESSION['imap_host'], $this->rc->config->get('managesieve_host', 'localhost'));
+ $host = rcube_parse_host($this->rc->config->get('managesieve_host', 'localhost'));
$port = $this->rc->config->get('managesieve_port', 2000);
// try to connect to managesieve server and to fetch the script
$this->sieve = new rcube_sieve($_SESSION['username'],
- $this->rc->decrypt($_SESSION['password']), $host, $port,
+ $this->rc->decrypt($_SESSION['password']), $host, $port,
$this->rc->config->get('managesieve_usetls', false),
$this->rc->config->get('managesieve_disabled_extensions'),
$this->rc->config->get('managesieve_debug', false)