Hi there,

Can't you just list the specific port within the host entries?

$rcmail_config['default_host'] = array('ip_server_1' => 'name server
1',
'ip_server_2:444' => 'name server 2' );


Cheers,
Mark

On Tue, 20 Jul 2010 14:03:38 +0200, Ludovic Stolycia
<[email protected]> wrote:
> 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

_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to