Changeset 3703 in subversion
- Timestamp:
- Jun 3, 2010 4:11:42 AM (3 years ago)
- Location:
- trunk/plugins/managesieve
- Files:
-
- 3 edited
-
Changelog (modified) (1 diff)
-
config.inc.php.dist (modified) (1 diff)
-
managesieve.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/managesieve/Changelog
r3593 r3703 1 * version 2.6 [2010-06-03] 2 ----------------------------------------------------------- 3 - Support %n and %d variables in managesieve_host option 4 1 5 * version 2.5 [2010-05-04] 2 6 ----------------------------------------------------------- -
trunk/plugins/managesieve/config.inc.php.dist
r3593 r3703 5 5 6 6 // managesieve server address, default is localhost. 7 // Use %h variable as replacement for user's IMAP hostname 7 // Replacement variables supported in host name: 8 // %h - user's IMAP hostname 9 // %n - http hostname ($_SERVER['SERVER_NAME']) 10 // %d - domain (http hostname without the first part) 11 // For example %n = mail.domain.tld, %d = domain.tld 8 12 $rcmail_config['managesieve_host'] = 'localhost'; 9 13 -
trunk/plugins/managesieve/managesieve.php
r3605 r3703 8 8 * with server using managesieve protocol. Adds Filters tab in Settings. 9 9 * 10 * @version 2. 510 * @version 2.6 11 11 * @author Aleksander 'A.L.E.C' Machniak <alec@alec.pl> 12 12 * … … 63 63 require_once($this->home . '/lib/rcube_sieve.php'); 64 64 65 $host = str_replace('%h', $_SESSION['imap_host'],$this->rc->config->get('managesieve_host', 'localhost'));65 $host = rcube_parse_host($this->rc->config->get('managesieve_host', 'localhost')); 66 66 $port = $this->rc->config->get('managesieve_port', 2000); 67 67 68 68 // try to connect to managesieve server and to fetch the script 69 69 $this->sieve = new rcube_sieve($_SESSION['username'], 70 $this->rc->decrypt($_SESSION['password']), $host, $port,70 $this->rc->decrypt($_SESSION['password']), $host, $port, 71 71 $this->rc->config->get('managesieve_usetls', false), 72 72 $this->rc->config->get('managesieve_disabled_extensions'),
Note: See TracChangeset
for help on using the changeset viewer.
