Changeset 5187 in subversion
- Timestamp:
- Sep 7, 2011 3:25:54 AM (21 months ago)
- Location:
- trunk/plugins/managesieve
- Files:
-
- 3 edited
-
Changelog (modified) (1 diff)
-
config.inc.php.dist (modified) (1 diff)
-
managesieve.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/managesieve/Changelog
r5156 r5187 1 1 - Added possibility to create a filter based on selected message "in-place" 2 2 - Fixed import from Horde-INGO (#1488064) 3 - Add managesieve_script_name option for default name of the script (#1487956) 3 4 4 5 * version 4.3 [2011-07-28] -
trunk/plugins/managesieve/config.inc.php.dist
r4133 r5187 32 32 $rcmail_config['managesieve_default'] = '/etc/dovecot/sieve/global'; 33 33 34 // The name of the script which will be used when there's no user script 35 $rcmail_config['managesieve_script_name'] = 'managesieve'; 36 34 37 // Sieve RFC says that we should use UTF-8 endcoding for mailbox names, 35 38 // but some implementations does not covert UTF-8 to modified UTF-7. -
trunk/plugins/managesieve/managesieve.php
r5186 r5187 206 206 // if script not exists build default script contents 207 207 $script_file = $this->rc->config->get('managesieve_default'); 208 $script_name = 'roundcube'; 208 $script_name = $this->rc->config->get('managesieve_script_name'); 209 210 if (empty($script_name)) 211 $script_name = 'roundcube'; 212 209 213 if ($script_file && is_readable($script_file)) 210 214 $content = file_get_contents($script_file); 211 215 212 // add script and set it active213 if ($this->sieve->save_script($script_name, $content))214 if ($this->sieve->activate($script_name))215 $_SESSION['managesieve_active'] = $script_name;216 // add script and set it active 217 if ($this->sieve->save_script($script_name, $content)) 218 if ($this->sieve->activate($script_name)) 219 $_SESSION['managesieve_active'] = $script_name; 216 220 } 217 221 }
Note: See TracChangeset
for help on using the changeset viewer.
