[RCD] [PATCH] Allow dovecot's master users

Simone Caruso simone.caruso at ardeek.com
Thu Mar 31 01:56:17 CEST 2011


Hi list,
since 0.5 we can't use dovecot's master password feature,
because RC truncates the username to the second '@' 
(user at domain1.com*masteruser at domain2.com)

For now i solved the problem with this patch, if you are interested:

--- rcmail.php     2011-03-31 01:45:11.000000000 +0200
+++ rcmail.php  2011-03-31 01:45:27.000000000 +0200
@@ -694,7 +694,7 @@
      $host = rcube_idn_to_ascii($host);
      if (strpos($username, '@')) {
        // lowercase domain name
-      list($local, $domain) = explode('@', $username);
+      list($local, $domain) = explode('@', $username, 2);
        $username = $local . '@' . mb_strtolower($domain);
        $username = rcube_idn_to_ascii($username);
      }

it would be nice to not creating a user configuration (users table) for dovecot 
master users.

Best regards.

-- 
Simone Caruso

CTO @ Ardeek SRL

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



More information about the Dev mailing list