Hi,
you can also try specifying an array of different configuration files as it is explained at http://trac.roundcube.net/wiki/Howto_Config . But it is not working for me.
If you try the solution please give us a feedback.
Good luck, Arminas
2010/7/20 Ludovic Stolycia ludovic.stolycia-ext@onera.fr
Hi, This is my first post :)
I'm managing one roundcube webmail connected to 2 differents imaps servers, using array in $rcmail_config['default_host'].
The trouble is : serveur 1 and 2 listen on two differents non standard port so using $rcmail_config['default_port'] = 143 is impossible.
$rcmail_config['default_host'] = array('ip_serveur_1'=>'name serveur 1', 'ip_serveur_2'=>'name serveur 2' ) ; $rcmail_config['default_port'] = 143;
So I made a modification in program/include/rcmail.php
diff rcmail.php rcmail.php.ori 464,469c464,465 < < if (is_array($config['default_port'])) { < $imap_port = $imap_port ? $imap_port : $config['default_port'][$host] ; < } else { < $imap_port = $imap_port ? $imap_port : $config['default_port'];
< }
$imap_port = $imap_port ? $imap_port : $config['default_port'];
and now in rcmail_config['default_port'] I can use an array too
in config/main.inc.php
$rcmail_config['default_host'] = array('ip_serveur_1'=>'name serveur 1', 'ip_serveur_2'=>'name serveur 2' ) ; //$rcmail_config['default_port'] = 143; $rcmail_config['default_port'] = array('ip_serveur_1'=>'port1', 'ip_serveur_2'=>'port2' ) ;;
If this changes is ok and usefull, I guess it would be nice to integrate the modification
Thanks,
Ludovic
-- ONERA BP72 - 29 avenue de la Division Leclerc FR-92322 CHATILLON CEDEX Tel: +33 (0) 146 733 939
List info: http://lists.roundcube.net/dev/
List info: http://lists.roundcube.net/dev/