The correct diff file:

    446c446
    <    if ($host == $host_allowed) {
    ---
    >    if ($host == rcube_utils::parse_host($host_allowed)) {
    626c626
    <    $host = $post_host;
    ---
    >    $host = rcube_utils::parse_host($post_host);

From: [email protected]
To: [email protected]
Date: Thu, 20 Feb 2014 21:10:28 +0000
Subject: Re: [RCD] $rcmail_config['default_host'] = array('ssl://mail.%s:993', 
'ssl://%s:993'); 




Does this make any sense:

diff /usr/local/www/roundcube/program/include/rcmail.php*

446c446
<         if ($host == rcube_utils::parse_host($post_host)) {
---
>         if ($host == $host_allowed) {
626c626
<         $host = rcube_utils::parse_host($post_host);
---
>         $host = $post_host;

Actually what I want to achieve is to use only the e-mail address and password 
fields to be able to connect to any IMAP server. With the addition to have 
'profiles' (instead of default hosts) that describe how to translate the e-mail 
address. For example:

Profile 1:
IMAP: ssl://mail.%h:993
User Name: %u

Profile 2:
IMAP: ssl://%h:993
User Name: %u@%h

Login examples:

Input: Email: [email protected] / Profile 1
Connection: IMAP: ssl://mail.donald.com:993 / User Name: mickey

Input: Email: [email protected] / Profile 2
Connection: IMAP: ssl://jerry.com:993 / User Name: [email protected]

The user opening Roundcube will have to know only his e-mail address and his 
profile (plus password, of course).

Any thoughts?


Regards
Balazs

From: [email protected]
To: [email protected]
Date: Thu, 20 Feb 2014 17:29:25 +0000
Subject: [RCD] $rcmail_config['default_host'] = array('ssl://mail.%s:993', 
'ssl://%s:993'); 




Hello

What should be changed in the source that the above line functions correctly?

I have different e-mail accounts with different IMAP host name patterns: some 
use mail subdomain, others do not. Would be glad to see this working. Thanks!


Cheers
Balazs
                                          

_______________________________________________
Roundcube Development discussion mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/dev                                 
          

_______________________________________________
Roundcube Development discussion mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/dev                                 
          
_______________________________________________
Roundcube Development discussion mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/dev

Reply via email to